12-17-2008 04:48 AM
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
Solved! Go to Solution.
12-18-2008 03:21 AM
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,