-
The fastest command for a Python script for logging with an MSO24
Hi everyone,
I am looking for the fastest way to get data from all four channels to my PC.
I am writing a python script using the pyvisa module and NI-Visa. My goal is to use the MSO24 for logging four voltages or sensor signals.
I need an average value of every channel every 100 ms. My approach is to save the first 10 data points of the waveforrm of each channel every 100 ms. I could average these values at the end.
After setting everything I am using these two commands in a while loop:
'DATa:SOUrce' to select the channel
'CURVe?' to get the waveform
Unfortunately, the commands are too slow and take together around 50ms.
Is there a faster way to get the data every 100ms? I already tried to optimize the time by choosing a time scale of 10ns/div.
I am not sure, if it is even possible to go faster with this instrument. However, I would be very happy if someone had an idea!
Thank you in advance!
Best regardsLukas