ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Oscilloscope push Stop Button with CVI

Solved!
Go to solution

Hi,

 

I wrote a software to control my oscilloscopes.
I have 2 stations, one with Keysight and one with Tektronix.

 

The problem is with the Tektronix oscilloscope.
Even if my oscilloscope is in a "Stop" state as soon as I call the function

tkdpo7k_ConfigureAcquisitionRecord

he oscilloscope goes in run state creating problems for the rest of my flow.

 

For now my solution is manual. At the end of the settings, I physically press stop on the oscilloscope and everything works perfectly.

So what I would like is to press "Stop" via the API but I can't find one that is right for me.

Can anyone give me suggestions?

 

Thanks

0 Kudos
Message 1 of 2
(2,277 Views)
Solution
Accepted by topic author Requiem_Q

It was finally solved, but to do so I had to use VISA instead of IVI

 

viWrite(visa_handler, "ACQUIRE:STOPAFTER SEQUENCE", 27, &ret);
viWrite(visa_handler, "ACQUIRE:STATE ON", 16, &ret);

 

by executing these two lines of code at the end of the configuration, the instrument goes into single acquisition

0 Kudos
Message 2 of 2
(2,205 Views)