Discussion:
Two DAQ Assistants
(too old to reply)
Reepicheep
2008-08-12 07:10:08 UTC
Permalink
Hello I've got the following problem:I have a .vi with two DAQ-Assitants. The first one is a DAQ-Input who is collecting the data from several sensors. The second one is a DAQ-Output who should controll a pump. Now, separately, both of them work fine. The pump works as long as it should and I get all the needed information from the sensors. But as soon as I've got both assistants in the same .vi, the input-one doesn't work... So the pump is still doing their job, while I'm  receiving just the default-values from the sensors... It seems like their waiting for something to finish...Any ideas what the problem is and how I could solve it?!?If it helps: - LabVIEW 8.5- DAQ USB6210- .vi is attachedThanks in advance for any help!   reepicheep


QC.vi:
http://forums.ni.com/attachments/ni/170/348514/1/QC.vi
Reepicheep
2008-08-12 08:10:09 UTC
Permalink
Oh, I forgot to add that I've got just an Evaluation Software... But I don't think this should make a difference....
lordsathish
2008-08-12 08:40:06 UTC
Permalink
The problem might be because both the DAQ assistants will be trying to access the DAQ simulataneoulsy, try using the same DAQ assistant for both the operations...
Reepicheep
2008-08-12 09:10:09 UTC
Permalink
I also thought that it could be something like that. But is it possible to use one DAQ-Assistant simultaneously as an input and as an output? And if yes, how?
devchander
2008-08-12 09:10:10 UTC
Permalink
Althought DAQ Assistants VI's are good to begin with, they are not handy when you want to perform multi-function operations like simultaneous output and input
Unlike what 'lordsatish' has posted, simultaneous input/output is possible in a Multifunction DAQ card ( Analog, digital, counter/timer Multi-function combinations)
 
There are two things I can suggest you to make your vi work
1. Simplest thing: Put your two DAQ Assistants in separate while loops in the same VI
 
2. Go to Example VIs shipped with LabVIEW and look at VI's found in Find examples>>Hardware input output>>DAQmx>>synchronization>>Multi Function folder. Here you can pick, modify and use an example VI that suits your application
 
Anymore doubts, do ask
 
 
Reepicheep
2008-08-12 09:40:07 UTC
Permalink
Thanks for the tip with the two while-loops... works perfectly...
Loading...