User Tools

Site Tools


tgled

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
tgled [2023/02/06 14:23] – thru to through brandontgled [2023/04/07 03:41] (current) – change TGLED-S to TGLED_S, 100millisec seconds => 100 milliseconds brandon
Line 7: Line 7:
  
 ASI LED illuminators are designated by the part number LLEDxxx-yz. ASI LED illuminators are designated by the part number LLEDxxx-yz.
-  * xxx indicates the approximate central wavelength in nanometers, or WHT for white.  The LED wavelengths listed below can be used with any of the drive electronic types.+  * xxx indicates the approximate central wavelength in nanometers, or WHT for white. The LED wavelengths listed below can be used with any of the drive electronic types.
   * y is a letter code indicating the type of drive electronics   * y is a letter code indicating the type of drive electronics
-    * R for regulated, which accepts a digital TTL signal to turn on the LED.  Dimming can be accomplished by pulse width modulation (PWM).  ASI firmwares generally can drive this with a TTL output signal with dimming accomplished with PWM frequency ~1kHz, which leads to perceivable flicker with fast camera exposures.  One LED per TTL signal. +    * R for regulated, which accepts a digital TTL signal to turn on the LED. Dimming can be accomplished by pulse width modulation (PWM). ASI firmware generally can drive this with a TTL output signal with dimming accomplished with PWM frequency ~1kHz, which leads to perceivable flicker with fast camera exposures. One LED per TTL signal. 
-    * A for analog, which uses the TGLED card on Tiger controllers (up to 4 separate LEDs) or WK-DUAL-LED-BRD on MS-2000 stand-alone controllers (up to 2 separate LEDs).  Much of this document is regarding this drive electronics, which has per-LED analog PWM too fast to be perceived by microscope cameras in typical operation. +    * A for analog, which uses the TGLED card on Tiger controllers (up to 4 separate LEDs) or WK-DUAL-LED-BRD on MS-2000 stand-alone controllers (up to 2 separate LEDs). Much of this document is regarding this drive electronics, which has per-LED analog PWM too fast to be perceived by microscope cameras in typical operation. 
-    * S for "Stabilight" analog control with feedback for stabilizing the intensity over time, introduced in 2022.  In mid-2022 the Tiger card TGLED-S is available but no equivalent is yet available for MS-2000 controllers.+    * S for "Stabilight" analog control with feedback for stabilizing the intensity over time, introduced in 2022. In mid-2022 the Tiger card TGLED_S is available but no equivalent is yet available for MS-2000 controllers.
   * z is a letter code to designate whether an iris is included   * z is a letter code to designate whether an iris is included
     * I for iris     * I for iris
     * N for no iris     * N for no iris
  
-All LED illuminators come with axial adjustment between the LED and the collimating lens, often used to achieve Kohler illumination.  Furthermore the LED can be moved slightly laterally so that multiple LEDs can be co-aligned.+All LED illuminators come with axial adjustment between the LED and the collimating lens, often used to achieve Kohler illumination. Furthermore the LED can be moved slightly laterally so that multiple LEDs can be co-aligned.
  
  
Line 90: Line 90:
 ===== TGLED-specific Serial Commands  ===== ===== TGLED-specific Serial Commands  =====
    
-Control of the TGLED card is similar to any other plug-in card of the TG-1000 system. This means most of the commands work (e.g. ''CDATE'', ''BUILD X'' etc.). However as TGLED doesn't control an actuator, all of the motion commands are not implemented as they are not applicable incase of LEDs (e.g. ''MOVE'',''WHERE'',''SPEED'' etc)+Control of the TGLED card is similar to any other plug-in card of the TG-1000 system. This means most of the commands work (e.g. ''CDATE'', ''BUILD X'' etc.). However as TGLED doesn't control an actuator, all of the motion commands are not implemented as they are not applicable incase of LEDs (e.g. ''MOVE'', ''WHERE'', ''SPEED'', etc)
  
  Below are some TGLED-related commands, including some that are “recycled” for a different use than for motion axes.  Below are some TGLED-related commands, including some that are “recycled” for a different use than for motion axes.
  
 {{topic>commands +tgled}} {{topic>commands +tgled}}
 +
 ===== Control through TTL ===== ===== Control through TTL =====
  
-==== All LEDs Turned ON , Mode #20 ====+==== All LEDs Turned ON, Mode #20 ====
  
-LEDs of the TGLED card can be turned ON/OFF through TTL pulse on TTL IN connector. When serial command <wrap cmd> [Addr#]TTL X=20 </wrap> is issued, TGLED will turn off all the LED channels, then on the Rising Edge of every TTL pulse received on TTL IN connector , TGLED card will turn on all the LED channels to their set values for a specific duration set with the <wrap cmd> [Addr#]RT Y </wrap> command. +LEDs of the TGLED card can be turned ON/OFF through TTL pulse on TTL IN connector. When serial command <wrap cmd> [Addr#]TTL X=20 </wrap> is issued, TGLED will turn off all the LED channels, then on the Rising Edge of every TTL pulse received on TTL IN connector, TGLED card will turn on all the LED channels to their set values for a specific duration set with the <wrap cmd> [Addr#]RT Y </wrap> command. 
 Then when serial command <wrap cmd> [Addr#]TTL X=0 </wrap> is issued. All the LEDs will turn ON to their set percentages.  Then when serial command <wrap cmd> [Addr#]TTL X=0 </wrap> is issued. All the LEDs will turn ON to their set percentages. 
  
-Units of <wrap cmd> RT Y </wrap> command are in millisec. Smallest acceptable value is 1millisec , and largest is 65000 millisec or 65sec. The timing may be off by around 0.25millisec to 0.5millisec. Maximum TTL frequency for which TGLED will reliably work is around 200Hz.  +Units of <wrap cmd> RT Y </wrap> command are in milliseconds. Smallest acceptable value is 1 milliseconds, and largest is 65000 milliseconds or 65sec. The timing may be off by around 0.25 milliseconds to 0.5 milliseconds. Maximum TTL frequency for which TGLED will reliably work is around 200Hz.  
  
-Example,+Example:
  
 <code>1LED X=30 Y=50 Z=0 F=0</code> <code>1LED X=30 Y=50 Z=0 F=0</code>
-Brightness of LEDs connected to Channel #1 and #2 is set to 30% and 50% respectively . LEDs connect to channel #3 and #4 will be turned off.+The brightness of LEDs connected to Channel #1 and #2 is set to 30% and 50% respectively. LEDs connected to channel #3 and #4 will be turned off.
  
 <code>1RT Y=100</code> <code>1RT Y=100</code>
-LED ON duration is set to 100millisec.+LED ON duration is set to 100 milliseconds.
  
 <code>1TTL X=20</code> <code>1TTL X=20</code>
-TGLED card is put in TTL mode , all LEDs channels are turned OFF. +TGLED card is put in TTL mode, all LEDs channels are turned OFF. 
-On the rising edge of Every TTL Pulse received on TTL IN connector, LEDs connected to channel #1 and #2 turn ON for 100millisec seconds for 30% and 50% brightness respectively. Channel #3 and #4 will remain OFF.+On the rising edge of Every TTL Pulse received on TTL IN connector, LEDs connected to channel #1 and #2 turn ON for 100 milliseconds for 30% and 50% brightness respectively. Channel #3 and #4 will remain OFF.
  
 <code>1TTL X=0</code> <code>1TTL X=0</code>
-TGLED card TTL mode is disabled , LEDs connected to Channel #1 and #2 turn ON and stay ON at 30% and 50% brightness respectively. Channel #3 and #4 will remain OFF. TTL pulses received on TTL IN will be ignored. +TGLED card TTL mode is disabled, LEDs connected to Channel #1 and #2 turn ON and stay ON at 30% and 50% brightness respectively. Channel #3 and #4 will remain OFF. TTL pulses received on TTL IN will be ignored. 
  
 ==== One LED ON for each TTL Trigger, Mode #21 ==== ==== One LED ON for each TTL Trigger, Mode #21 ====
  
 In this mode, for every TTL Trigger (Rising Edge Pulse on TTL IN connector). Only one LED channel turns ON for a fixed duration (Set with the RT Y command). Then On the next TTL trigger, the next LED channel turns ON for the same fixed duration. If a LED brightness is set to ZERO, then that channel is skipped and the next channel is turned ON instead.  In this mode, for every TTL Trigger (Rising Edge Pulse on TTL IN connector). Only one LED channel turns ON for a fixed duration (Set with the RT Y command). Then On the next TTL trigger, the next LED channel turns ON for the same fixed duration. If a LED brightness is set to ZERO, then that channel is skipped and the next channel is turned ON instead. 
-Example,+Example:
  
 <code>1LED X=30 Y=50 Z=0 F=0</code> <code>1LED X=30 Y=50 Z=0 F=0</code>
-Brightness of LEDs connected to Channel #1 and #2 is set to 30% and 50% respectively . LEDs connect to channel #3 and #4 will be turned off.+Brightness of LEDs connected to Channel #1 and #2 is set to 30% and 50% respectively. LEDs connect to channel #3 and #4 will be turned off.
  
 <code>1RT Y=100</code> <code>1RT Y=100</code>
Line 131: Line 132:
  
 <code>1TTL X=21</code> <code>1TTL X=21</code>
-TGLED card is put in TTL mode #21 , all LEDs channels are turned OFF. +TGLED card is put in TTL mode #21, all LEDs channels are turned OFF. 
-On the rising edge of FIRST TTL Pulse received on TTL IN connector, LED connected to channel #1 turns ON for 100millisec seconds for 30% brightness. Channel #2,#3 and #4 will remain OFF.+On the rising edge of FIRST TTL Pulse received on TTL IN connector, LED connected to channel #1 turns ON for 100 milliseconds for 30% brightness. Channel #2, #3 and #4 will remain OFF.
  
-On the Second TTL Pulse, LED connected to Channel #2 turns ON for 100millisec seconds for 50% brightness. Channel #1,#3 and #4 will remain OFF.+On the Second TTL Pulse, LED connected to Channel #2 turns ON for 100 milliseconds for 50% brightness. Channel #1,#3 and #4 will remain OFF.
  
-On Third TTL Pulse, As Channels #3 and #4 are both set to 0% brightness, routine skips then and instead turns ON Channel #1 instead for 30% brightness and 100millisec. Channel #2,#3 and #4 will remain OFF.+On Third TTL Pulse, As Channels #3 and #4 are both set to 0% brightness, routine skips then and instead turns ON Channel #1 instead for 30% brightness and milliseconds. Channel #2, #3 and #4 will remain OFF.
  
-On the Forth TTL Pulse, LED connected to Channel #2 turns ON for 100millisec seconds for 50% brightness. Channel #1,#3 and #4 will remain OFF.+On the Forth TTL Pulse, LED connected to Channel #2 turns ON for 100 milliseconds for 50% brightness. Channel #1, #3 and #4 will remain OFF.
  
 And So on... And So on...
Line 152: Line 153:
 TGLED card is supported on[[ https://micro-manager.org/wiki/Micro-Manager_Nightly_Builds|MicroManager 1.4.23]] (or on Nightly builds built after 1st Dec 2015) as a [[https://valelab.ucsf.edu/~MM/doc/MMDevice/html/class_m_m_1_1_shutter.html|shutter device]] under ASITiger.  TGLED card is supported on[[ https://micro-manager.org/wiki/Micro-Manager_Nightly_Builds|MicroManager 1.4.23]] (or on Nightly builds built after 1st Dec 2015) as a [[https://valelab.ucsf.edu/~MM/doc/MMDevice/html/class_m_m_1_1_shutter.html|shutter device]] under ASITiger. 
  
-Each TGLED card supports upto four LED illuminators. MicroManager automatically detects this , and implements them as 4 different shutter devices. +Each TGLED card supports upto four LED illuminators. MicroManager automatically detects this, and implements them as 4 different shutter devices. 
  
 Below is a brief description of the device functions and properties, Below is a brief description of the device functions and properties,
Line 160: Line 161:
 ''SetOpen(bool open = true)'', Use to turn ON or OFF the LED. Brightness is set according to the ''SetOpen(bool open = true)'', Use to turn ON or OFF the LED. Brightness is set according to the
  
-''LED Intensity(%)'' property. **True** for ON , **False** for OFF+''LED Intensity(%)'' property. **True** for ON, **False** for OFF
  
 ''GetOpen(bool& open)'', Query the current LED state. ON or OFF. ''GetOpen(bool& open)'', Query the current LED state. ON or OFF.
Line 168: Line 169:
 == Device Member Properties == == Device Member Properties ==
  
-''LED Intensity(%)'' , set the PWM dutycycle of the LED. +''LED Intensity(%)'', set the PWM dutycycle of the LED. 
  
-''State'' , Can be set as **Open** or **Closed** to turn the LED ON or OFF respectively.+''State'', Can be set as **Open** or **Closed** to turn the LED ON or OFF respectively.
  
-''Current Limit in milliamps'' , Set the TGLED cards maximum current. This is a card wide settings , so it affects the brightness of all LEDs run from the same card. This property can also be used to adjust the LED brightness.+''Current Limit in milliamps'', Set the TGLED cards maximum current. This is a card wide settings, so it affects the brightness of all LEDs run from the same card. This property can also be used to adjust the LED brightness.
  
-''SaveCardSettings'', a write only property , which lets the user save the current settings into the TGPMT cards's memory , or restore everything to factory defaults. +''SaveCardSettings'', a write only property, which lets the user save the current settings into the TGPMT cards's memory, or restore everything to factory defaults. 
  
  
-===== Troubleshoot =====+===== Troubleshooting =====
  
 Listed below are some common issues when using the TGLED card and how to fix them.  Listed below are some common issues when using the TGLED card and how to fix them. 
  
-=== LEDs are OFF , TGLED cards Green LED indicator is solid Green and TGLED won't respond to serial commands. ===+=== LEDs are OFF, TGLED cards Green LED indicator is solid Green and TGLED won't respond to serial commands. ===
  
-This happens when TGLED card detects an over voltage. It disables the power supply and shutdown to prevent damage. A system Reset or Restart will bring the TGLED card back on , however if the over voltage persists cards will shut off again. +This happens when TGLED card detects an over voltage. It disables the power supply and shutdown to prevent damage. A system Reset or Restart will bring the TGLED card back on, however if the over voltage persists cards will shut off again. 
 One of the causes of overvoltage is when a LED Lamp is disconnected from the TGLED card by unplugging the plug from LED Lamp end first. This is seen by the Regulator on the TGLED card as a open circuit or huge resistance. It tries to maintain the current flow by ramping up the voltage. To avoid this disconnect the Led LAMP by unplugging it from the TGLED card side first. Refer to Connecting TGLED to MIM-LED-LAMP-NR section for more details.  One of the causes of overvoltage is when a LED Lamp is disconnected from the TGLED card by unplugging the plug from LED Lamp end first. This is seen by the Regulator on the TGLED card as a open circuit or huge resistance. It tries to maintain the current flow by ramping up the voltage. To avoid this disconnect the Led LAMP by unplugging it from the TGLED card side first. Refer to Connecting TGLED to MIM-LED-LAMP-NR section for more details. 
-To Fix this , unplug all the LED Lamp plugs from TGLED card , Restart the system , and plug in one LED LAMP at a time. If Plugging in a LAMP causes the issue , there might be a problem with the LAMP. Contact ASI to discuss a replacement.+To Fix this, unplug all the LED Lamp plugs from TGLED card, Restart the system, and plug in one LED LAMP at a time. If Plugging in a LAMP causes the issue, there might be a problem with the LAMP. Contact ASI to discuss a replacement.
 === LED Lamp's color changed over time === === LED Lamp's color changed over time ===
 LED Lamps color changes when they experience high temperature for extended period of time. Running the LEDs at 100% brightness causes them to dissipate a lot of energy and generate heat.  LED Lamps color changes when they experience high temperature for extended period of time. Running the LEDs at 100% brightness causes them to dissipate a lot of energy and generate heat. 
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
tgled.1675711429.txt.gz · Last modified: by brandon