LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Truble reading data from multiple channels

Solved!
Go to solution

Hi, 

I am trying to set up a program, which can read different kinds of sensors selected at the front panel. 

My setup is locked on a specific channel (First channel - select sensor, Second channel - select sensor and so on..)Channels.png

 

 

 

 

 

 

 

 

 

 

 

But when I run my program I get this error:

Frontpanel.png

 

 

 

 

 

 

 

 

 

I can't get readings from both at the same time. Can someone tell me what I doing wrong?

Thanks

0 Kudos
Message 1 of 4
(1,709 Views)
Solution
Accepted by topic author M.PEDERSEN

Hi M.,

 

you still try to initialize two (or more) DAQmx tasks using the very same DAQ device. And it seems your DAQ device does not support several tasks at once.

Put all channels into just one task. (As is explained in the example VIs coming with LabVIEW&DAQmx!)

 

You asked a very similar question here

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(1,702 Views)

Hi GerdW, 

Thanks for your answers. But I still can't get it to work. 

I tried setting it up like this instead. (picture) 

But still the same result. 

Not sure where to find the example you refer to. 

best regards. 

0 Kudos
Message 3 of 4
(1,696 Views)

Hi M.,

 

But I still can't get it to work. I tried setting it up like this instead. (picture)

It doesn't help to show a small part of your big block diagram…

 

check.png

You can't even run such a small simple VI like this?

Instead of trying to improve that big mess of your VI you should really start with a fresh small VI.

(You still didn't improve any of all those things I mentioned before!)

 

Not sure where to find the example you refer to.

In the LabVIEW example finder!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(1,679 Views)