ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
05-08-2020 12:57 PM
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
Solved! Go to Solution.
05-13-2020 09:49 AM
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