07-25-2013 06:06 AM
Hi.
I want to aquire data from 4 separate DAQs in one.vi (at 0.5 sec)
How can i do this, easier ?
Of course, i tried 4 DAQ asistants, but it is not working ( Error 50103. it says that the specified resource is reserved.)
how can i do 4 separate tasks and read analog voltages from each DAQ ?
Thanks.
07-25-2013 06:31 AM
@dsasorin wrote:
Hi.
I want to aquire data from 4 separate DAQs in one.vi (at 0.5 sec)
You want to acquire data from 4 different DAQs (do you mean here, different channels or different DAQ devices...)
@dsasorin wrote:
Of course, i tried 4 DAQ asistants, but it is not working ( Error 50103. it says that the specified resource is reserved.)
I got it, you mean to say, you want to acquire 4 different signals using same DAQ device... you're getting error because. (check case#4 in this link)...
dsasorin wrote:how can i do 4 separate tasks and read analog voltages from each DAQ ?
Why you need to 4 separate tasks, when it can be done in a single task....!!
Share your code (or may be just the data acqusition part), so that we can point, what exactly you're doing wrong while configuring DAQ Assistants... Of course you cannot use multiple DAQ Assistants configured to same DAQ and performing data acquisition simultaneously (unless you choose to use an S-series DAQ card).
07-25-2013 06:43 AM
i don't have yet any good code, just tries.
i mean a want to aquire from 4 different DAQs: different channels...
like:
DAQ1 / ch 0-5
DAQ2 / ch 0-7
DAQ3 / ch 0-3
DAQ4 / ch 0-7
each @ rate 100 / 200 Hz
Of course, graph data on each.....
07-26-2013 01:03 AM
Anyone ?, please ?
for exemple, how can i read samples from DAQ1, from ch 0 to 7 ?
what are the corect modules and corect order ?
Thanks.
07-26-2013 01:07 AM
@dsasorin wrote:
Of course, i tried 4 DAQ asistants, but it is not working ( Error 50103. it says that the specified resource is reserved.)
If you don't have any code, how come you experienced this error???
Even if you dont have a 'GOOD CODE', you can share whatever you have...!!
07-26-2013 02:00 AM
here it is
07-26-2013 02:16 AM
You have 4 DAQ Assistant express VIs, configured in such a way that they point to same DAQ device (as a hardware resource), now on running there must be error as there is definite possibility of resource conflict...!!
Well answer two simple questions:
1. How many DAQ devices & what model are avilable (connected) with your computer.
2. How many channels from each DAQ device, you're planning to use (for acqusition of various signals)
Keep in mind, each DAQ devices contain multiple channels(specifically talking about ANALOG INPUT, generally 16 Analog Input channels (in RSE mode, otherwise 8 in differential mode)... and also generally DAQ device has common ADC available for all channels of that device, so it is shared (multiplexed)...!!
If you understand all of this, you shouldn't have any problem while configuring it for your requrement...!!
All the best.
07-26-2013 02:47 AM
yes i understand all this.
i made especially this vi for you with 4 daq to see what i want to do., Anyway, i copy / paste other 3, of course it is pointing to the same daq source.
I was hoping you will help me to do the same thing USING DAQ mx modules. Maybe one, to have an exemple.
I think using daq mx modules, i avoid conflicts and limited resources when using daqs like in this case. ( Or not ?) This is why i want use daq mx modules.
I made something in attachement
Someting like this is what i want.
I want to aquire data from 4 DAQs, continous, without conflicts and limited resources
07-26-2013 03:05 AM
@dsasorin wrote:
I think using daq mx modules, i avoid conflicts and limited resources when using daqs like in this case. ( Or not ?) This is why i want use daq mx modules.
Ok, I think you wanna say, instead of using DAQ Assistant, you want to use low level functions using DAQmx VIs... Thats definitely a good idea.
Well the code that you had attached, has issues.
In you code you're trying to.
1. Use an existing global task.
2. Add few more physical channels to that task.
3. Trying to just one sample from one channel... and this will throw an error ( -200523).
Coming back to same question.
@moderator1983 wrote:
Well answer two simple questions:
1. How many DAQ devices & what model are avilable (connected) with your computer.
2. How many channels from each DAQ device, you're planning to use (for acqusition of various signals)
And if you want to start exploring the DAQmx functions, refer to this link.
07-26-2013 03:16 AM
well it easy :
4 USB daq devices in total:
1. NI- 6210 - 8 dif.ch (0-7)
2. NI- 6210 - 8 dif.ch (0-7)
3. NI - 6251 - 8 dif.ch (0-7)
4. cDAQ 9172 + NI 9215 - 8 dif.ch (0-7)
Does it matter if i connect two devices 6210 through a USB Hub? ( i don't have enough usb ports on my laptop). I see and I can configure all devices in MAX.