Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

NI usb 6008 voltage generation and acquisition

hello all,
I am a mech eng student who has never touched Labview before until a few weeks ago. so forgive me if my problem is blalantly obvious.
I am trying to make my usb 6008 produce a square wave through so i can feed it to a simple dc motor and measure the response with the usb6008 through its analog ports. I understand i must use some sort of buffer to copy and reproduce the wave again and again. i could not find any examples of waveform generation for this device. it is all very confusing. Please help!

errors I get :
Error -200077 occurred at Property Node DAQmx Timing (arg 1) in Waveform Buffer Generation.vi->squarewave gen.vi

Possible reason(s):

Requested value is not a supported value for this property.

Property: SampTimingType
You Have Requested: Sample Clock
You Can Select: On Demand

Task Name: _unnamedTask
0 Kudos
Message 1 of 2
(3,766 Views)

Hi Blur,

Some bad news I'm afraid.  The 6008 does not support buffered output.  There is no hardware clock on this device and so the only way that you can actually output values from the 6008 is point by point.

If you are using a square wave then it may be easier (if your device supports it) to use a digital signal and simply toggle that. 

The frequancy of the square wave would obviously be half the speed that you are toggling the digital signal and will be a maximum of 5V and a minimum of 0V (not guarenteed, you might like to look at the data sheets to get a better understanding of the likely voltage values).

I hope this has shed some light on the subject.

Post back if you need more help.

AdamB

Applications Engineering Team Leader | National Instruments | UK & Ireland
Message 2 of 2
(3,751 Views)