Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Timed Readings not working

Hello everyone, I have a program that takes current readings from a 3458a DMM and displays the readings in an array using LabVIEW. The DMM is commanded to take 200 readings total at a rate of 10 readings per second. I have a timer that displays how long the readings take (and have also timed it outside of LabVIEW) and for some reason, the timing is always short. For example, when told to take 200 readings, the program only runs for about 18 seconds. Is there something wrong with the program that is causing it to do this? I know that 2 seconds is not alot, but this program needs to be very accurate.

I appreciate any help you have to offer!

 

0 Kudos
Message 1 of 4
(3,554 Views)

sbev001,

 

Are you receiving all of your 200 readings or somehwere around 180 readings?

 

Also, if you could document your code a little bit and get rid of the stacked sequence structure it would help with readibility 😉

 

Regards,

---

Peter Flores
Applications Engineer
0 Kudos
Message 2 of 4
(3,534 Views)

Thanks for your response. I have attached a picture of the block diagram and front panel, just simplified alot (I cut out everything that didnt have to do with acquiring the readings so that it is easier to read). I am getting the right number of readings even though the timing is off.

Thanks again for your help!

Download All
0 Kudos
Message 3 of 4
(3,530 Views)

It is hard to see what you changed in the program. I do not see the command that initiates the 200 reads. Can you "unstack" that sequence structure?

 

My thoughts are that it is an issue with the hardware or how you are timing it. If you read 20 samples or 200 samples, is it always 2 seconds off or is it related to how many readings you are taking?

 

regards

---

Peter Flores
Applications Engineer
0 Kudos
Message 4 of 4
(3,509 Views)