LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx 9213 creating a task for multiple devices

Hello. I need to connect to different systems with multiple ENet-9213 / 9211 present.  I can create a task and communicate with one enet 9213. For a second 9213 I have to create another task, that is identical. All i need is to read the voltage on all channels.  The objective is to connect to different systems containing one or more of the enet 9213 or 9211.  Is there a way to do this?  Your help is much appreciated! 

0 Kudos
Message 1 of 10
(3,444 Views)

Hi,

 

What you could do is put the following in a for loop and.  Allways use the same task, and wire a new address and name for each channel.

 

CreateTask.JPG

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 2 of 10
(3,427 Views)

I tried this with the enet-9213 and virtual inst. .I get error on adding to many channels. I created a task with no channels, got the same error.  bummer... this is my first DAQmx device to program... there has to be a way to read voltages from multiple devices...

thanks

0 Kudos
Message 3 of 10
(3,407 Views)

mmm, I'm doing exatly the same With a PXI  and 128 channels and it works perfect.

 

Configuration :

Configure.JPG

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 4 of 10
(3,404 Views)

 

Thank you for reply.  I must be missing something..I only get error out of too many channels if i connect the task in. (the task in with 16ch or no channels)

0 Kudos
Message 5 of 10
(3,395 Views)

Hi,

 

Can you post your VI so we can have a look at it?

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 6 of 10
(3,393 Views)

attached, thanks

my objective is to read voltages from multiple devices on different systems.

Thank you  rh

0 Kudos
Message 7 of 10
(3,391 Views)

hey gone4fishn,

 

can you attach a screenshot of the error you receive? you look like you are calling the same device twice, which would result in a resources error. you need to call both devices, which you can do by selecting them both in the physical channels drop down menu.

 

cheers,

kgarrett

District Sales Engineer
0 Kudos
Message 8 of 10
(3,355 Views)

Hello, thank for the reply,

I attached the front panel and circuit.

I removed all channels from the 'myvoltagetask_16'. Still get the same error.

What am i missing?

Do I have to create a task for each enet-9213?  My objective is to connect to multiple 9213's on different systems.

? How do I know what is connected and assign a Task to it?

Thanks

Ralph Hodgin

LLNL

925-423-8135

0 Kudos
Message 9 of 10
(3,352 Views)

Hi,

 

Are you sure you cleaned up the task before adding the other channels?  It look to me that you're adding 16 channels, while the start VI says you're having 33 channels.  Where do the other 17 come from?  Try to add a VI clear task before you add other channels.

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 10 of 10
(3,332 Views)