User Tools

Site Tools


commands:led

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:led [2019/04/18 19:33] – external edit 127.0.0.1commands:led [2026/05/28 17:24] (current) – brandon
Line 1: Line 1:
 ====== Command:LED ====== ====== Command:LED ======
  
---> On Tiger with Two Axis Card#+--> On Tiger with Two Axis Card ^
  
    
-^Format  |[Addr#]LED X=[1 to 100]   |+^Format  |[Addr#]LED X=[0 to 100]   |
 ^Type    |Percentage between 0 and 100 | ^Type    |Percentage between 0 and 100 |
 ^Remembered |Using [Addr#]SS Z | ^Remembered |Using [Addr#]SS Z |
-^Firmware Required |PWM_LED_DIM  | +^Firmware Required |STD_XY_LED| 
-Sets the brightness of ASIs LED illuminator by generating PWM thru TTL out. TTL out mode should be set to ‘9’ (i.e. TTL y=9). Enable out from the LED illuminator should be connected to TTL out on controller. This setting can be saved in non-volatile memory using the SAVESET command. The PWM frequency is 1.3KHz. It’s a Card-Addressed command.+Sets the brightness of ASIs LED illuminator by generating PWM through TTL out. TTL out mode should be set to ‘9’ (i.e. TTL Y=9). Enable out from the LED illuminator should be connected to TTL out on controller. This setting can be saved in non-volatile memory using the SAVESET command. The PWM frequency is 1.3KHz. It’s a Card-Addressed command.
  
 The LED command has a slightly different format on a TGLED card. Refer to TGLED card user guide for more details. The LED command has a slightly different format on a TGLED card. Refer to TGLED card user guide for more details.
  
 <WRAP center round info 60%> <WRAP center round info 60%>
-NOTE: If you are encountering flickering, try adjusting your shutter speed to integer multiples of the PWM period (0.77 ms).+**Note:** If you are encountering flickering, try adjusting your shutter speed to integer multiples of the PWM period (0.77 ms).
 </WRAP> </WRAP>
    
 <-- <--
  
---> On Tiger and TGLED card#+--> On Tiger and TGLED card ^
  
    
Line 46: Line 46:
 <-- <--
  
---> On Tiger with Micro-mirror card #+--> On Tiger with Micro-mirror card ^
  
    
Line 56: Line 56:
 The LED commands are used to control the laser outputs of the card (Micro-mirror card backplane connectors, usually output by the Programmable Logic Card or TTL card in early versions).   The origin of these commands was for MM_SPIM firmware, but a separate define MM_LASER_TTL was created so that it could be used in other situations as well. This documentation for v2.88+, though the Y parameter was added ~v2.86.  In general these only apply when the auxiliary TTL output mode is set to 1 (TTL T) and when the SPIM state machine is not running. The LED commands are used to control the laser outputs of the card (Micro-mirror card backplane connectors, usually output by the Programmable Logic Card or TTL card in early versions).   The origin of these commands was for MM_SPIM firmware, but a separate define MM_LASER_TTL was created so that it could be used in other situations as well. This documentation for v2.88+, though the Y parameter was added ~v2.86.  In general these only apply when the auxiliary TTL output mode is set to 1 (TTL T) and when the SPIM state machine is not running.
  
-output (X) selects which logical laser is on when the SPIM state machine is not running.  The exact hardware output depends on bits 0-2 of the LED Z setting.  X=0 means neither laser is on, X=1 means the Side0 laser is on, X=2 means the Side1 laser is on, and X=3 means both lasers are on (LED Y setting applies in this case).  Requires TTL T (aux_IO_mode) setting to be 1.  Setting is overridden during SPIM state machine operation.+//output// (**X**): selects which logical laser is on when the SPIM state machine is not running.  The exact hardware output depends on bits 0-2 of the LED Z setting.  X=0 means neither laser is on, X=1 means the Side0 laser is on, X=2 means the Side1 laser is on, and X=3 means both lasers are on (LED Y setting applies in this case).  Requires TTL T (aux_IO_mode) setting to be 1.  Setting is overridden during SPIM state machine operation.
  
-switch_time (Y) sets the switching time in ms between the laser outputs when the SPIM state machine is not running and when both lasers are active per the LED X command.  Used to simulate the effect of a passive 50/50 beam splitter, which is particularly useful during alignment.  Default is 10ms, cannot be set less than 1ms.+//switch_time// (**Y**): sets the switching time in ms between the laser outputs when the SPIM state machine is not running and when both lasers are active per the LED X command.  Used to simulate the effect of a passive 50/50 beam splitter, which is particularly useful during alignment.  Default is 10ms, cannot be set less than 1ms.
  
-laser_mode (Z) determines the behavior of the laser TTL outputs, both when using the LED settings and also during the SPIM state machine.+//laser_mode// (**Z**): determines the behavior of the laser TTL outputs, both when using the LED settings and also during the SPIM state machine.
   * Bits 0-2 form a code 0-7 selecting how the logical laser outputs are converted to physical TTL outputs.  Setting should correspond to the physical hardware connected to the laser TTL outputs.  Specifically   * Bits 0-2 form a code 0-7 selecting how the logical laser outputs are converted to physical TTL outputs.  Setting should correspond to the physical hardware connected to the laser TTL outputs.  Specifically
     * code 0 for individual laser shutters for the two sides (default until v3.01)     * code 0 for individual laser shutters for the two sides (default until v3.01)
Line 68: Line 68:
     * codes 4-7 are reserved for future use     * codes 4-7 are reserved for future use
   * Bits 3-7 are reserved for future use and currently cannot be set   * Bits 3-7 are reserved for future use and currently cannot be set
 +<html><br></html>
  
 +//Side0_state// (**R**): can be set to 1 or 0 as shorthand for turning on/off the Side0 laser without affecting the state of the Side1 laser.  It is equivalent to querying the logical laser output state (X), changing the LSB, and then setting the output state (X).  Introduced in v3.11.
  
-Side0_state (R) can be set to 1 or 0 as shorthand for turning on/off the Side0 laser without affecting the state of the Side1 laser.  It is equivalent to querying the logical laser output state (X), changing the LSB, and then setting the output state (X).  Introduced in v3.11. +//Side1_state// (**T**): can be set to 1 or 0 as shorthand for turning on/off the Side1 laser without affecting the state of the Side0 laser.  It is equivalent to querying the logical laser output state (X), changing the 2nd bit, and then setting the output state (X).  Introduced in v3.11.
- +
-Side1_state (T) can be set to 1 or 0 as shorthand for turning on/off the Side1 laser without affecting the state of the Side0 laser.  It is equivalent to querying the logical laser output state (X), changing the 2nd bit, and then setting the output state (X).  Introduced in v3.11.+
  
  
Line 78: Line 78:
  
  
---> On MS2000 or RM2000#+--> On MS2000 or RM2000 ^
  
    
Line 86: Line 86:
 ^Firmware Required |LED DIMMER   | ^Firmware Required |LED DIMMER   |
  
-X argument sets the brightness of ASIs LED illuminator by generating PWM thru TTL out. TTL out mode should be set to ‘9’ (i.e. TTL y=9). Enable out from the LED illuminator should be connected to TTL out on controller. This setting can be saved in non-volatile memory using the SAVESET command. +X argument sets the brightness of ASIs LED illuminator by generating PWM through TTL out. TTL out mode should be set to ‘9’ (i.e. TTL y=9). Enable out from the LED illuminator should be connected to TTL out on controller. This setting can be saved in non-volatile memory using the SAVESET command. 
  
 <WRAP center round info 60%> <WRAP center round info 60%>
-If you encountering flickering in a live image, try adjusting your shutter speed to avoid aliasing with the LED PWM frequency.+**Note:** If you are encountering flickering in a live image, try adjusting your shutter speed to avoid aliasing with the LED PWM frequency. The PWM frequency is 1 KHz.
 </WRAP> </WRAP>
    
Line 97: Line 97:
  
 <-- <--
---> On MS2000 with Dual LED#+--> On MS2000 with Dual LED ^
  
    
Line 104: Line 104:
 ^Remembered |Using SS Z | ^Remembered |Using SS Z |
 ^Firmware Required |DUAL_LED   | ^Firmware Required |DUAL_LED   |
 +^Default Values |X=20 Y=20 R=100 T=100  |
 +
 +Dual LED is a modern two LED driver for MS2000. Instead of using PWM to dim the LED, DUAL LED varies the current applied to dim the LEDs (DC constant current driver) resulting in very little flicker even at high shutter speeds. The brightness of the two LEDs can be independently set using the X and Y arguments of the LED command. At 100% brightness about 900ma is applied to the connected LED. The DUAL LED board can supply up to 900mA to two LEDs simultaneously, with both channels independently controllable. 
 +
 +The DUAL LED command also has a current limiting feature, where the user can set the maximum allowed brightness of the two LEDs with R and T arguments. This setting is saved in a non volatile memory on the PCB , so this setting is preserved even after firmware upgrade. R and T are both defined as the upper-limit that X and Y can be set to. R corresponds to X and T corresponds to Y. 
  
-Dual LED is a new two LED driver for MS2000. Instead of using PWM to dim the LED, DUAL LED varies the current applied to dim the LEDs resulting in very little flicker even at high shutter speeds. The brightness of the two LEDs can be independently set using the X and Y arguments of the LED command. At 100% brightness about 900ma is applied. Dual LED have a current limiting feature, user can set the maximum allowed brightness of the two LEDs with R and T arguments. This setting is saved in a non volatile memory on the PCB , so this setting is preserved even after firmware upgrade. Say a LED with maximum rated current is 100ma attached to channel 1. Then setting <wrap cmd> LED R=10 </wrap> will limit the maximum applied current to 90ma. +For example, an LED with maximum rated current of 100ma is attached to channel 1.  
 +Then setting <wrap cmd> LED R=10 </wrap> will limit the maximum applied current to 90ma by limiting X to no greater than 10.
  
   
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/led.1555630390.txt.gz · Last modified: (external edit)