Thanks. I had actually been looking for a C language solution since I have LV 7.0 and NI doesn't support it. I finally found it, I'm using the following with good success:
if (DAQmxGetDevDOLines("Dev1", DAQlist, 1024) < 0) {PROCESS_ERROR3};
sscanf(DAQlist+strlen(DAQlist)-11, "port%d/line%d", &cards, &channels); cards++; channels++;
if (DAQmxGetDevProductType("Dev1", DAQlist, 1024) < 0) {PROCESS_ERROR3};
LV_str_cp(switch_unit->ID, DAQlist);
This finds the number of ports (
cards) and lines (
channels) and product type.
I often mix LabView and C programming -- I don't have to worry about version support when the drivers are in C.
...Dan