Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 6008 - Questions on the C APIs and how to use them

Hi

 

I am trying to use the NI 6008 to drive a Digital Programmable Attenuator and had a few questions. I am newbie with this device, so most of my questions are relating to figuring out the basics with this device.

 

1) I am hoping to be able to write a simple C program to have the NI USB 6008 drive this Digital Programmable Attenuator. Is this possible? I could find the NI-DAQmx C Reference Help file, but I cant seem to find how to build and load a program onto the NI USB 6008?

 

2) I would like to be able to turn ON a particular attenuation setting on the Digital Prog. Atten. at a specific instant and after a few milliseconds turn it OFF. And repeat this endlessly. I was looking for a Timer API to let me control the Digital Prog. Atten. at set timer interrupts but I am not sure if there is a way to do this. I see the APIs: DAQmxCfgImplicitTiming and DAQmxCfgSampClkTiming. But I am not 100% sure if these are the right APIs to use for this purpose. Also which APIs can I use to set the Digital lines in the DAQ to highs and lows?

 

Like I said earlier, I am a newbie with this device and I am not really sure if I am going in the right direction. Any help would be greatly appreciated.

 

Thanks

Anand

0 Kudos
Message 1 of 3
(3,955 Views)
You do not load a program onto the device. Your program runs on your pc and you build your program that calls the DAQmx functions.

There is no clock for for the digital I/O. As the spec says, it is strictly software timed which means you explicitly write a true or false, one state at a time. This is subject to jitter from Windows and I would not expect rates above 100 Hz.
0 Kudos
Message 2 of 3
(3,954 Views)

Dennis

 

Thanks for your quick reponse.

 

Regards

Anand

0 Kudos
Message 3 of 3
(3,942 Views)