11-20-2007 05:08 PM
11-21-2007 01:44 PM
Hi Kangmin,
It sounds like your original C code was programmed using the Traditional NI-DAQ driver. Both the Traditional NI-DAQ and the DAQmx drivers support the PCI-DIO-32HS card. The USB 6008, however, is only supported in the DAQmx driver. Getting the program to work with the USB 6008 will require more work than just importing the nidaqmx library. You will have to change all the driver function calls in your code from Tradional NI-DAQ to DAQmx. The Developer Zone article, Transitioning from Traditional NI-DAQ (Legacy) to NI-DAQmx Using ANSI C and NI LabWindows™/CVI, contains a lot of information on what changes you need to make to your program.
As for the device codes, you can find them in the Traditional NI-DAQ Function Reference Help file (…Program Files\National Instruments\NI-DAQ\docs\nidaqpc.chm). Search for Init_DA_Brds in the help file to get a list of device codes for specific devices. Note that the USB-6008 does not have a device code because these codes only pertain to devices that are supported by the Traditional DAQ driver. I hope this helps.
11-21-2007 02:16 PM
11-22-2007 08:30 AM
hai, could you please send me c-code to access usb-6008.(that may be to access analog or digital channels).i have gone through the c-code but i didn't understand it completely.i want to learn from your c-code.
Thank you.