User Tools

Site Tools


commands:rtime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
commands:rtime [2025/03/27 16:09] – make F arg more clear and link to CRISP module brandoncommands:rtime [2025/05/05 20:43] (current) – better description brandon
Line 7: Line 7:
  
 ^Shortcut  |RT   |  ^Shortcut  |RT   | 
-^Format  |RT [X=report_time] [Y=pulse_length in ms] [Z=delay_time] [F=num_aves] [M]± |+^Format  |RT [X=report_time] [Y=pulse_length in ms] [Z=delay_time in ms] [F=num_aves] [M]± |
 ^Remembered |Using SS Z | ^Remembered |Using SS Z |
  
Line 15: Line 15:
  
 ^Shortcut  |RT   |  ^Shortcut  |RT   | 
-^Format  |[Addr#]RT [X=report_time] [Y=pulse_length in ms] [Z=delay_time in ms] [F=num_aves] [T=finish_error_time in ms] |+^Format  |[Addr#]RT [X=report_time] [Y=pulse_length in ms] [Z=delay_time in ms] [F=num_aves] [T=finish_error_time in ms]  [M]±|
 ^Type |Card-Addressed| ^Type |Card-Addressed|
 ^Remembered |Using [Addr#]SS Z | ^Remembered |Using [Addr#]SS Z |
Line 27: Line 27:
 **Z:** The Z argument sets the post-move delay time in milliseconds for array moves (using the [[:rapid_array_scanning|ARRAY MODULE]]), and/or the delay between ring buffer moves when ''RM F'' is set to autoplay (mode 2, 3 or 4).  Note that for ring buffer moves the delay time specifies the interval between attempted moves, whereas for arrays the delay specifies the time between arriving at the desired position and initiating movement to the next position. For ring buffer if the delay time is set to be 0 then the actual time between moves will be the axis loop time (generally 0.25 ms times the number of axes, e.g. 1 ms for a four axis card). For array moves, if ''[[commands:ttl|TTL Y=2 or 11]]'' then this Z argument is normally set to be at least as long as as ''RT Y'' to achieve full-length TTL pulses.  Note that this Z argument is distinct from the time set using the ''[[commands:wait|WAIT]]'' setting which introduces a user-set delay after landing at a position before the move is considered complete (affects both busy status and any TTL output pulse).  **Important note for use with TTL Y=11 mode**: the timer that implements the ''RT Z'' setting starts counting when the XY stage lands, regardless of CRISP status. **Z:** The Z argument sets the post-move delay time in milliseconds for array moves (using the [[:rapid_array_scanning|ARRAY MODULE]]), and/or the delay between ring buffer moves when ''RM F'' is set to autoplay (mode 2, 3 or 4).  Note that for ring buffer moves the delay time specifies the interval between attempted moves, whereas for arrays the delay specifies the time between arriving at the desired position and initiating movement to the next position. For ring buffer if the delay time is set to be 0 then the actual time between moves will be the axis loop time (generally 0.25 ms times the number of axes, e.g. 1 ms for a four axis card). For array moves, if ''[[commands:ttl|TTL Y=2 or 11]]'' then this Z argument is normally set to be at least as long as as ''RT Y'' to achieve full-length TTL pulses.  Note that this Z argument is distinct from the time set using the ''[[commands:wait|WAIT]]'' setting which introduces a user-set delay after landing at a position before the move is considered complete (affects both busy status and any TTL output pulse).  **Important note for use with TTL Y=11 mode**: the timer that implements the ''RT Z'' setting starts counting when the XY stage lands, regardless of CRISP status.
   
-**F:** The F argument is used with the [[:crisp_manual|CRISP]] firmware module. Sets ''num_aves'', the power-of-two exponent for the number of samples to be averaged.+**F:** The F argument is used with the [[:crisp_manual|CRISP]] firmware module. Set ''num_aves'', the power-of-two exponent for the number of samples to be averaged (2<sup>N</sup> = Number of Samples). The default value is 0, 1 sample, no averaging. 
 + 
 +This feature performs a [[https://en.wikipedia.org/wiki/Moving_average|rolling average]] on the error correction signal ([[:commands:LOCK|LK Y?]]), where the window size is the number of samples (2<sup>N</sup>). 
 + 
 +--> Table: Number of Samples# 
 + 
 +^Number of Averages^^ 
 +^N^Samples 2<sup>N</sup>^ 
 +| 0 | 1 | 
 +| 1 | 2 | 
 +| 2 | 4 | 
 +| 3 | 8 | 
 +| 4 | 16 | 
 +| 5 | 32 | 
 +| 6 | 64 | 
 +| 7 | 128 | 
 +| 8 | 256 | 
 + 
 +<-- 
 + 
 +\\
  
 <wrap lo>Tiger v3.34 required.</wrap> \\ <wrap lo>Tiger v3.34 required.</wrap> \\
-**T:** The T argument sets finish_error_time, which is the total amount of time that a motorized stage has to spend within the finish error of the target position at the end of a commanded move (''[[commands:pcros|PC]]'' setting) before the busy flag is cleared and the move is considered complete. Defaults to 3 ms (previously the setting didn't exist but its effective value was 0.5 ms).+**T:** The T argument sets ''finish_error_time'', which is the total amount of time that a motorized stage has to spend within the finish error of the target position at the end of a commanded move (''[[commands:pcros|PC]]'' setting) before the busy flag is cleared and the move is considered complete. Defaults to 3 ms (previously the setting didn't exist but its effective value was 0.5 ms).
  
-<wrap lo>MS-2000 v9.54 required.</wrap> \\ +<wrap lo>MS-2000 v9.54 or Tiger v3.53 required.</wrap> \\ 
-**M:** The M argument is used with the [[:synchronous_encoder_reporting|TLL_REPORT_INT]] firmware module. Sending the command ''RT M+'' enables TTL reports. To disable TTL reports send the command ''RT M-''.+**M:** The M argument enables [[:serial_position_report|serial position reporting]]. Sending the command ''RT M+'' enables the reports. To disable the reports send the command ''RT M-''.
  
 <-- <--
Line 125: Line 145:
  
 ^Shortcut  |RT   |  ^Shortcut  |RT   | 
-^Format  |RT [R= duration threshould] |+^Format  |RT [R= duration threshold] |
 ^Remembered |Using SS Z | ^Remembered |Using SS Z |
  
-Sets the trigger duration threshould for the SERVOLOCK_TTL functionality (pulses longer that the threshold are considered "long" = negative move and shorter are considered "short" = positive move.  Restricted to units of 0.25 milliseconds.  Defaults to 0.75 ms.+Sets the trigger duration threshold for the ''SERVOLOCK_TTL'' functionality (pulses longer that the threshold are considered "long" = negative move and shorter are considered "short" = positive move.  Restricted to units of 0.25 milliseconds.  Defaults to 0.75 ms.
  
  
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/rtime.1743106148.txt.gz · Last modified: by brandon