10-25-2019 05:22 AM
I have two cDAQ9181 with one 9421 modules inside each. I am developing a data acquisition system using Labview to collect digital data from the aforementioned devices.
Can I use a single DaqMx create channel (digital input) for both cDAQs?
Currently, if I try to select multiple devices I get an error: "Physical channel range syntax in the input string is invalid because multiple devices were listed in the string".
Thanks for your support.
10-25-2019 06:40 AM
10-25-2019 07:18 AM
Thanks
So what is the solution? Two DaqMx tasks in parallel? I hope I don’t have to build another vi
10-25-2019 07:23 AM - edited 10-25-2019 07:25 AM
Hi Davide,
@DavideB wrote:
So what is the solution? Two DaqMx tasks in parallel? I hope I don’t have to build another vi
Yes, two tasks.
No need for another VI: you can handle both tasks in one VI (or even one loop)…
11-08-2019 10:43 AM
I am trying to read from 2 cDaqs. Then I try to concatenate the array and write it to an xls file. But I am missing something as you can see in the attached vi. Let's say I am reading 6 lines (booleans) from cDaq1 and 6 lines from cDaq2:
cDaq1:
000
010
cDaq2:
011
001
I should get something like this
000
010
011
001
and then write it to the xls file, after converting to decimals:
0
2
3
1
The build array object is not correct here, probably. Any suggestion? thanks
11-08-2019 10:59 AM
I think I solved it replacing build array with insert into array!
Thanks
11-09-2019 06:45 AM
11-09-2019 08:52 AM
Thanks cbutcher
but isnt the solution with insert into array correct?
11-09-2019 09:37 AM
Insert into Array might work, but it has the wrong "feeling" or intent.
Part of writing good code is making clear what you're trying to do, and what you want to do is build a bigger array by concatenating two smaller arrays. Insert into array suggests you're wanting to place stuff in the middle of a larger array.
Even though in this case they can be used to do the same thing, they suggest different things.
When you can, write code that most naturally describes what you're trying to do.
11-11-2019 10:27 AM
Yes, I agree, thanks.
Now I have the problem to connect the task out and error out pins of two DaqMx read objects. How can I fix that?