12-17-2009 02:23 PM
Thanks
RTsul12-17-2009 03:32 PM
Search of 50103 turned up hundreds of results, look at the 1st one here:
http://search.ni.com/nisearch/app/main/p/bot/no/ps/10/ap/global/q/50103/
-AK2DM
12-17-2009 04:28 PM
Hi RTsul,
Your VI executes the "true" case of the outer case structure for iterations 0 and 1 of the while loop, not just iteration 0. It would be more straightforward to put the initialization code outside the while loop, and to initialize the shift registers instead of leaving them uninitialized.
Brad
12-18-2009 07:14 AM
Hi, Brad
The "true" case of the outer case structure is supposed to execute for iterations 0 and 1 according the inner case. The code is divided in 3 parts according the while loop iteration i=0, i=1 and i>1. I can’t put outside the initialization code because the measurements (amplitude2 and 3) are made inside the while loop.12-18-2009 07:57 AM
Hi,
As AK2DM and Brad said, this error occurs due to continuously starting and clearing your DAQmx task in the while loop for an extended period of time. To avoid this problem, configure and start your task once, then call the read/write function in the loop as needed.
For an example on how to do this, take a look at the simple Cont Acq&Graph - Int Clk.vi example. To find the example, launch LabVIEW and go to Help»Find Examples. Browse by task to Hardware Input and Output»DAQmx»Analog Measurements»Voltage.
Regards,