Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get physical channel for both USB and ENET card

Solved!
Go to solution

Hello

 

For my application (in VB .NET, using NIDAQmx 8.8), I need to get access to 2 cards:

a USB 6008 and a ENET9163.

 

I would like to read the physical channels automatically with this NI DAQmx function

 

Physicalchannel1ComboBox.Items.AddRange(DaqSystem.Local.GetPhysicalChannels(PhysicalChannelTypes.AI, PhysicalChannelAccess.External))

 

Unfortunately, it only get  one card at a time.

When the USB card is connected, it read the physical channels of the USB card

When the USB card is not plugged, it read the physical channels of the ENET card.

 

I hope someone can help me with this issue!!

 

Thanks

RB

 

 

RB.
Université Bordeaux 1
0 Kudos
Message 1 of 2
(3,042 Views)
Solution
Accepted by topic author rb_bdx

Hello RB,

 

To read from multiple channels, you can enter in the "Physical Channel" combo box, the channels seperated by commas, or if you're reading from physical channels, the string "DevX/aiY:Z", where X is the device number, and X and Y are the first and last channel you want to scan (e.g. To read from ai0 to ai4 from your device 1, enter "Dev1/ai0:4"). From the names of your channels, I'm assuming they're global channels created in MAX? You can still read from multiple channels and different boards by seperating them with commas.

 

Hope this helps !

 

Regards,

0 Kudos
Message 2 of 2
(3,021 Views)