01-05-2021 11:40 PM - edited 01-05-2021 11:43 PM
Hi there,
I am using Keysight DSO-X4104A oscilloscope model and Labview 2018.
My mission is to acquire a duty cycle data and waveform data from the oscilloscope and to record the duty cycle data every 0.1 seconds.
I programmed a VI using Agilent 2000 3000 X-Series basic examples.
This attached VI program basically works fine, but data is recorded only up to approximately one data per second.
Even if I speed up the timer loop of VI untill 10 ms, it doesn't record faster anymore.
I want to get more data per second, I want to know what is the problem.
01-06-2021 10:12 AM - edited 01-06-2021 10:12 AM
I don't have the Keysite scope VI's so I can't see what is happening inside them, one of the two is limiting your loop rate.
What interface are you using? (USB, Serial, GPIB, LXI)
I ask because a serial interface running a slow baud rate could take that long to transfer the waveform data.
01-07-2021 09:13 AM
Thank you for your answer.
I am using USB interface.
If anyone can analyze my VI code and know why it limit loop rate, please answer me.
01-07-2021 11:08 AM - edited 01-07-2021 11:09 AM
Remove or use a "diagram disable" to determine what VI is taking so long.
Again I suspect the waveform transfer. We use LeCroy scopes here and they have a Ethernet interface. I have several tests the save waveforms and it takes a second or so to transfer a waveform even through Ethernet.
Is there a reason you need to see the waveform and update it live on screen?
01-07-2021 08:23 PM
Thank you for your sincere advice.
I would like to check the signal output value, duty cycle, and waveform from my sensor in as possible as fast time to check that my sensor work fine.
I am curious too, if the reason for the slow data recording is because of physical interface or my programming code.
01-07-2021 09:57 PM
Well I don't see anything in your code that would be causing it.