03-01-2019 04:06 AM
Hi there,
I am using labview to acquire a waveform from a RIGOL DS4024 oscilloscope. Even though I have set the oscilloscope's memory depth to more than 7000 points my appended array in labview acquires only 1400 points. I am willing to get more points but I don t know how. I connect the oscilloscope to my pc via an ethernet cable. Any ideas on how to increase the number of data points acquired?
Thanks in advance!
John
03-01-2019 04:32 AM
Hi John,
Any ideas on how to increase the number of data points acquired?
I guess the answer to that device specific question is found in the manual of your device.
What does it say about configuring the scope? Which commands to use?
03-01-2019 11:33 AM
Hi there,
I am using labview to acquire a waveform from a RIGOL DS4024 oscilloscope. Even though I have set the oscilloscope's memory depth to more than 7000 points my appended array in labview acquires only 1400 points. I am willing to get more points. However when I tried to change the WAV:MODE NORM; to WAV:MODE RAW; I still get 1400 points. Any ideas on how to increase the number of data points acquired?
Thanks in advance!
Regards,
John
P.S. I attach both my main and my read programmes!
03-01-2019 11:46 AM
Have you explicitly set the waveform points to 7000? If you have, I would try a query ":WAVE:POIN?" after reading your data to make sure nothing accidentally reset the reading mode or number of points.
03-04-2019 06:03 AM
Hi Gregory,
I have tried what you suggested but unfortunately it didnt work. if you want you could have a look on my vi.
Thanks in advance,
John
03-04-2019 09:44 AM
Hello John,
I'll try to shed some light. Gregory's hint is still valid, we currently don't know if your scope does what we expect it to do. Firstly, I spotted a typo in your code:
:WAV:FORM BYT;:WAV:MODE RAW;:WAV:POIN 5000;
The colon I highlighted in red is missing.
If that does not solve your problem, could you change your code to test the following:
If you get a different point number here, it might be that your scope needs the commands ":WAV:MODE RAW;:WAV:POIN 5000;" sent separately, with a small delay in between. Test that as well.
If that gets the correct return number from :WAVE:POIN?, but not the measurements you expect, we should have a look at your parsing code. It looks correct according to the DS4000 Programming Guide, but we should check. (Note: I might be looking at the wrong manual (please let us know) or at the wrong page.) Two ideas:
03-04-2019 12:54 PM
What happens if after you do the measurement, set the long timeout you just read the entire response of :WAV:DATA? as a string and then parse?
I don't see anywhere in your SCPI code where you setup the scope for a single trigger. Is it constantly triggering and measuring? If its started a new measurement while you are transfering data to PC, my worry would be that the memory of the waveform you are trying to read might not be there by the time you do the 3 sequential read statements. So you might just be getting fewer points because the buffer isn't full of the new measurement yet.
To test; setup single shot trigger, transfer data as a string, parse string, count the readings.
Craig