Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Spanning multiple devices in single input channel using DAQmx

I have a test system with a lot of digital I/O. I'm using VC++ with DAQmx. I like grouping related things together when possible and in this case some of the digital inputs span multiple 6509's. Can a single virtual input channel be created that spans multiple devices, i.e.:

        DAQmxCreateDIChan(
            taskHandle,
            "PXI1Slot2/port0:11,PXI1Slot3/port3:5",
            "",
            DAQmx_Val_ChanForAllLines
        );

It compiles ok but when it runs, I get the following error:
"Physical channel range syntax in the input string is invalid".  (error -200086)

If I only use ports on a single device, this seems ok. It is only when I try to create a channel that spans devices that I have a problem..

Thanks,
John
0 Kudos
Message 1 of 2
(4,014 Views)
Hi John,

Unfortunately, one task cannot span across multiple devices.  Each task can contain one device, so in your case, you will need to create a task for each of your 6509's.  I believe you posted a similar question here?

Thaison V
Message 2 of 2
(3,999 Views)