06-21-2022 06:39 PM
Hello.
I want to record the current and voltage of a DC load: Agilent N3301A. The device should be able to generate data every 20 ms according to device specifications. I connected the DC load to a power source. In labview, I modified the default vi and put the measurement sections in a loop (vi is attached). Still, no more than 3 samples/s can be generated. I don't know where I'm going wrong. The speed of data collection is set using a timer inside the loop.
06-21-2022 07:20 PM
You've misunderstood that the instrument can sample at a 20ms rate if you do 1 sample at a time, NO. Higher sampling rates store a bunch of samples in onboard memory and later you can read all those samples back to your computer.
In your current implementation, the communication overheads are going to be higher than the 20ms itself (depending on the comm. method) and your data logging point by point within the loop.
So, the answer, I would suggest reading the instrument manual to find out how to get the 20ms sampling rate and fetch it back later.