Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger a LabView program through the GPIB interface

Is there any way to trigger a LabView program using an external trigger? I'm using a GPIB interface and would like for my photon counter (Stanford Research SR400) to trigger my program once it itself is triggered and starts to collect data. Thanks!

- Jon
0 Kudos
Message 1 of 2
(3,184 Views)
Hi John,

I do not believe there is a way to send a hardware trigger into your computer to cause LabVIEW to start up and run a program. You could, however, have your program already running and waiting for a certain thing to happen in order to progress further. You could do this in a number of ways... two that come to mind immediately would be to use a Wait on VISA Event, or to simply try to read from the instrument in a loop and not proceeding until you don't get a timeout error. But no matter how you implement the waiting, you will need to have the LabVIEW program already running even if it is simply waiting on something else in order to proceed.

john m
Applications Engineering
0 Kudos
Message 2 of 2
(3,175 Views)