Posted Wed, 01 Feb 2023 15:47:14 GMT by Rountree, Kelley

Hi, the purpose of my program is pulse an LED on and off and acquire the radiant energy while the LED is ON. I am using a Keithley 2401 source meter and Ocean Insight Flame S. In the example program attached, the Keithley is running on a 2 second period. The ON time of the LED is set by the "sample count", meaning that the LED is provided 0.1 Amps until 3 measurements (or samples) are taken of the voltage and current (this normally takes about 0.08 s/reading). The LED is then turned off until the 2 seconds period is over. This is 1 pulse. The example program has 3 pulses (i.e., Pulse Number). My delay is set to 0 seconds (so the Keithley measures the datapoints as fast as possible after the output is turned on).

The Keithley can trigger another instrument to take a measurement only while it is measuring through the trigger link. I want the trigger link to send a trigger output signal after delay ends and after the measurement ends. This is attempted in the Configure Trigger Link.vi . My trigger out channel is set to 2. My spectrometer is set to synchronous mode which means that it should start data acquisition when it receives the first trigger and then stop when it receives the second trigger. Right now, it's doing nothing. Is there something wrong with my code? 

Posted Mon, 20 Feb 2023 19:11:45 GMT by Rountree, Kelley
I'm commenting just in hopes that someone can take a look at this. 
Posted Sat, 25 Feb 2023 23:50:26 GMT by C, Andrea
I'm not able to read the VI file, but can offer some info.

To have the TLINK lines trigger, you need to be using the trigger model.
Check out figure 11-3 in the 2400 User Manual on Remote Trigger Model.
The Trigger Outputs at the various points in that flow can be enabled to give the output trigger at desired time.

From your description of pulse on and off operation, I can't tell if you are using a sweep (+I1, 0, +I2, 0, +I3, 0) or just doing a for/next loop in LabVIEW.
To have any hope of output triggers on TLINK, you need to do the sweep approach.

If you had a 2400 rather than 2401, the DB9 connector has some digital IO that you could just command to HI or LO state with the SOURCE2 commands.

You must be signed in to post in this forum.