From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

how to detect usb6009 using c++

how do i detect the name of the attached device in c++?

also how do i detect available channels in c++?

0 Kudos
Message 1 of 3
(5,377 Views)

char buffer[100];
char *p = buffer;

wxString active;
DAQmxGetSysDevNames(p,32);
active << p;

 

i already found how to get device name. 

i just need to know how to find the list of channels.

0 Kudos
Message 2 of 3
(5,373 Views)

nevermind i found it.

 

DAQmxGetDevAOPhysicalChans(p, data , 200);

0 Kudos
Message 3 of 3
(5,371 Views)