05-23-2017 11:39 AM - edited 05-23-2017 11:41 AM
I am trying to collect voltages from three different sources.
When I use diagram disable on two of the structures the one works.
Am I not allowed to collect data from several sources in the same vi?
the DAQ I am using is USB-6009
I am using Labview 2013 32 bit
on a windows 7 32 bit computer
Solved! Go to Solution.
05-23-2017 11:48 AM
I can't open your VI but I'm willing to bet that you have three different tasks defined for these three channels. Instead, define all 3 channels in the same task and it should work properly.
05-23-2017 12:09 PM - edited 05-23-2017 12:14 PM
You need to have one task with 3 channels. Only 1 while loop.
Something else odd is that you have "available samples" wired to number to read. Just wire a constant number into the DAQmx Read. Low enough so that the screen updates quickly, but large enough so that the VI can keep up with grabbing the data and displaying it.
If you searched the forums for error 50103, (drop the negative sign as that messes up the search), you'd have had the answer by now.
05-23-2017 12:09 PM
Yes, You are correct.
Thank you for your fast response.
How would I do that? Would I do that in IN MAX?
since I was not able to upload a vi that could be open I took a few screen shots and put them in the word document.
05-23-2017 12:14 PM
Add multiple "Create Virtual Channel" VIs to the same task wire (in series to one another). You'll also need to change the "DAQmx Read" to "N Chan N Samp" so that it returns a 2D array of data.
05-23-2017 12:17 PM
make your channel constant say Dev1/ai0:2