LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running VI while doing VISA read/write

I have a control loop (while loop) in my main VI. I would like to read a measurement from a device through GPIB using VISA.

My problem is the following. My control loop is being executed every 0.15 sec (the fastest it can run without using timers). However, it takes 1.7 sec to my measurement instrument from the time I send the VISA Write to when I read back the measurement via VISA Read. This 1.7 sec is determined by the instrument itself. So, is it possible in LabVIEW to have my main control being done every 0.15 sec and at the same time communicate with the instrument? Right now, my iteration time is mainly determined by the instrument communication (1.7sec). It seems that LabVIEW doesn't do anything else than waiting for th
e instrument to send back the data. The ideal situation would be that for every 1.7sec time slot, I would have had 11 iterations of my control loop (or at least more than just one) and one measurement back from the instrument.

Any ideas how this can be done?

Thanks

Frederic Davidson
0 Kudos
Message 1 of 2
(2,446 Views)
User a two-loop model. One loop handles the GUI, the other one handles DAQ / VISA. For more information, check out this article:

http://zone.ni.com/devzone/learningcenter.nsf/webmain/338EE44CB1C3450986256C2B007CF8C5?opendocument&node=DZ52068_US

Joe
Message 2 of 2
(2,446 Views)