julia
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| julia [2022/08/19 19:42] – add expandable tab brandon | julia [2023/08/15 15:44] (current) – remove html comment, use ruby since it's close to Julia syntax, make file downloadable brandon | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| --> Here is an example script for the MS2000 and XY stage:# | --> Here is an example script for the MS2000 and XY stage:# | ||
| - | |||
| - | < | ||
| **Last tested on Windows 10 64-Bit and Julia 1.8.0** | **Last tested on Windows 10 64-Bit and Julia 1.8.0** | ||
| - | <code Ruby> | + | <code Ruby ms2k.jl> |
| using LibSerialPort | using LibSerialPort | ||
| Line 62: | Line 60: | ||
| print(" | print(" | ||
| end | end | ||
| - | while is_axis_busy(serial_port) | + | while is_axis_busy(serial_port, axis) |
| sleep(wait_time_sec) # 1 ms default | sleep(wait_time_sec) # 1 ms default | ||
| end | end | ||
| Line 78: | Line 76: | ||
| end | end | ||
| - | function is_axis_busy(seial_port:: | + | function is_axis_busy(serial_port:: |
| if serial_send_recv(serial_port, | if serial_send_recv(serial_port, | ||
| true | true | ||
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
julia.1660952548.txt.gz · Last modified: by brandon
