Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

C++ access to a NI USB-6008 card

Hi everyone.
I'm trying to access to the USB-6008 Analog Output channels from Visual C++ to control a DC Motor.
First, I tried to have a look and try the LV example in the NI-DAQ folder, but it does not work. When I try to run the program, it is giving the error 10401 (that it's not a NI device).
Can I have sended some code examples or any idea about what I have to do?
Thanks
0 Kudos
Message 1 of 4
(4,044 Views)

Hello J-KID,

You can check easily what the status of your Mutlifunction DAQ USB-6008 by opening the MAX (Measurement and Automation) installed with LabVIEW.

Firstly, go to Device from MAX and check if your NI-DAQmx Device is detected.
Secondly, go to software from MAX to check the driver version of your NI-DAQmx driver or NI-DAQmx Base driver.

Indeed, the USB-6008/USB-6009 require NI DAQmx version 7.5 or higher.
The latest versions of the drivers are available for download at links included below.
http://joule.ni.com/nidu/cds/view/p/id/424/lang/en

http://joule.ni.com/nidu/cds/view/p/id/965/lang/en


Otherwise, some questions:

What is version of your LabVIEW?


Which example did you use?

 

Let me know if it’s still doesn’t work, and I will search deeply.

 

Best regards,

Laurent

NI Switzerland


0 Kudos
Message 2 of 4
(4,032 Views)

Hello Laurent,

Thanks for the information. My NI-DAQmx is detected by MAX and we are using the latest version of the NI-DAQmx (8.6).

We are using the 8.5 LV version and I tried to execute the AO AOonepoint.c example. It still does not work, it's something really strange.

Thnaks for everything again.

KID

0 Kudos
Message 3 of 4
(4,014 Views)
Hi J-KID,

You did the right thing by downloading the new DAQmx drivers for your 6008. The program, however is using the traditional DAQ functions. The 6008 only works with DAQmx functions. You can access the DAQmx palette from the Functions Palette. Measurement I/O>>NI-DAQmx. I recommend starting with the DAQ Assistant, as it greatly simplifies the programming.

Try with the following example: Acq One Sample.vi
To find it: go search of NI example finder, then select an hardware below, add device, and select USB 6008.

Let me know if you have any further questions.

Laurent
National Instruments
Switzerland


0 Kudos
Message 4 of 4
(3,987 Views)