Oksana,
You can get a list of physical channels using the following functions:
DAQmxGetSysDevNames(char *data, uInt32 bufferSize); - this gives you all the devices that are configured under DAQmx on your system
data is the string that contains all the device names
DAQmxGetDevAIPhysicalChans(const char device[], char *data, uInt32 bufferSize); - this gives you all the physical channels on a device
device[] input is a device name from the first function
data is the string that contains all the physical channels
I wrote the following code as an example:
char devices[11];
char devName[4];
char channels[1000];
DAQmxErrChk (DAQmxGetSysDevNames(devices, 11));
printf("%s\n",devices);
for (i;i<4;i++)
devName[i] = devices[i];
DAQmxErrChk (DAQmxGetDevAIPhysicalChans(devName, channels, 1000));
printf("%s\n",channels);
Hope this helps!
Abhinav T.
Applications Engineer
National Instruments
Abhinav T.
Applications Engineering
National Instruments India
LabVIEW Introduction Course - Six Hours
Getting Started with NI-DAQmx
Measurement Fundamentals