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 15:45] – link to TTL_REPORT_INT in x param 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 sets num_aves, the power-of-two exponent for the number of samples to be averaged. Used with the ''CRISP'' system.+**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 46: Line 66:
 ^Firmware Required |MM_SPIM| ^Firmware Required |MM_SPIM|
  
-Sets up timings used in the high-level operation of SPIM state machine coordinated by Micro-mirror card.  They are specified in ms with 0.25 ms resolution.  These commands augment, not replace, the other RTIME parameters applicable to all TG-1000 cards.  For SPIM state machine triggered by TTL after arming, these values are usually "locked in" during the arming step (i.e. upon ''SN X=97'').+Sets up timings used in the high-level operation of SPIM state machine coordinated by Micro-mirror card.  They are specified in ms with 0.25 ms resolution.  These commands augment, not replace, the other ''RTIME'' parameters applicable to all TG-1000 cards.  For SPIM state machine triggered by TTL after arming, these values are usually "locked in" during the arming step (i.e. upon ''SN X=97'').
  
 **Z:** //delay_time// is the delay between ring buffer moves just as normal, however it serves an added function: it is also the delay between the receipt of the trigger and the start of the SPIM state machine operation, allowing a systematic delay to be added.  Note that resolution is 1 ms for this setting. **Z:** //delay_time// is the delay between ring buffer moves just as normal, however it serves an added function: it is also the delay between the receipt of the trigger and the start of the SPIM state machine operation, allowing a systematic delay to be added.  Note that resolution is 1 ms for this setting.
  
-**F:** //scan_duration//: sets the duration of each beam scan during SPIM operation.  Total beam scan time will be multiplied by the number of scans (NR X).  Introduced in v3.14; in v3.13 and earlier the value for SAF <axis> was used instead.  Cannot be less than 1 ms.+**F:** //scan_duration// sets the duration of each beam scan during SPIM operation.  Total beam scan time will be multiplied by the number of scans (NR X).  Introduced in v3.14; in v3.13 and earlier the value for SAF <axis> was used instead.  Cannot be less than 1 ms.
  
-**R:** //laser_duration//: sets the duration that the laser control output stays high.  Cannot be less than 0.25 ms.+**R:** //laser_duration// sets the duration that the laser control output stays high.  Cannot be less than 0.25 ms.
  
-**T:** //camera_duration//: sets the duration that the camera trigger output stays high.  Cannot be less than 0.25 ms.+**T:** //camera_duration// sets the duration that the camera trigger output stays high.  Cannot be less than 0.25 ms.
  
 All units in milliseconds and are currently rounded to the nearest 0.25 ms All units in milliseconds and are currently rounded to the nearest 0.25 ms
Line 82: Line 102:
 ^Remembered |Using [Addr#]SS Z | ^Remembered |Using [Addr#]SS Z |
  
-**Y:** The RT command's Y argument is "recycled" for a different purpose for the TGLED cards. Here it is used to set the duration the LEDs stay on after a TTL trigger. +**Y:** The RT command's Y argument is "recycled" for a different purpose for the ''TGLED'' cards. Here it is used to set the duration the LEDs stay on after a TTL trigger. 
  
 Other behaviors and function of RT command have been left unchanged. Refer to the TG-1000 programming manual for more info.  Other behaviors and function of RT command have been left unchanged. Refer to the TG-1000 programming manual for more info. 
Line 95: Line 115:
 ^Remembered |Using [Addr#]SS Z | ^Remembered |Using [Addr#]SS Z |
  
-**Y:** The RT command's Y argument is "recycled" for a different purpose for the TGPMT cards. Here it is used to set the duration the Reset pulse to clear the PMT from Overload state. Overload reset pulse is generated when the [[commands:lock|LOCK]] command is issued. +**Y:** The RT command's Y argument is "recycled" for a different purpose for the ''TGPMT'' cards. Here it is used to set the duration the Reset pulse to clear the PMT from Overload state. Overload reset pulse is generated when the [[commands:lock|LOCK]] command is issued. 
  
 Example Example
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.1743104759.txt.gz · Last modified: by brandon