Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Different results when program is run with execution highlighting selected.

I am trying to operate a Lecroy 9310C oscilloscope with an instrument driver in LabVIEW. The program seems to do what I want but only when it is run with the execution highlighting tool selected. Is this a timing issue?
0 Kudos
Message 1 of 3
(2,954 Views)
Hi Missy,

I sounds like it.

My guess is the oscilloscope isnt given enough time to either setup correctly or to capture the waveform before its asked for a measurement.

You could try using the *OPC? command so that the program waits for the instrument to complete a command before being commanded to take the measurement.


Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(2,954 Views)
Missy,
Ray have given you a good response suggesting the *OPC command. There is a good example of this on our website...you can find it at the following path:
www.ni.com>>technical support>>advanced search...Check example programs and search for "waiting for operation to complete" and it should be the first example program.
If you are still having trouble using this command, you can insert a sequence structure that with a wait function int he sequence. This should provide enough of a delay for the instrument to setup correctly.
Best Regards,
Chris D
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,954 Views)