Measure

cancel
Showing results for 
Search instead for 
Did you mean: 

while loop LSCI 421

Hi all..
I have the following question; I have installed the instrument driver for Lakeshore 421 gauss meter. I can run the program by using Application VIs--Getting started VI, and see the single measured value .
In order to perform continous execution i placed the application VI inside a while loop, which enables continous execution. But the problem is that the values displayed in the front panel is extremely delayed. Namely, I see the measurement the  value, which is displayed on the device own screen, much later on the front panel. I think i have placed the while loop  to wrong place.
What can i do in order to perform real time measurments? where i should replace the while loop if it s the my mistake?

0 Kudos
Message 1 of 2
(6,771 Views)
Hello:
 
The problem is that you are simply dropping the VIs into a loop.  They are not meant to be used this way.  The Getting Started VI will initialize, take a measurement, and then close communication each time it is called.  The easiest way to get real-time measurements with minimal effort is to go into the Getting Started VI and place a while loop about the actual measurement call.  Also, you may want to lower the wait time.
 
Second, change the filter settings on the hardware if need-be for faster response.  You are also liitd by communication rate.  Make sure the baud rate is maximal (9600).
 
To really get quick speed, remove all the 'Decoder' calls if you don't need real-time values, just high sample rate (that is, you can write to RAM/HD and process it later).
 
-Marcos
0 Kudos
Message 2 of 2
(6,721 Views)