Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Continous output signal using DAQ usb 6008 in matlab

Solved!
Go to solution

Good evening,

I am trying to output a continuous signal using the NI DAQ usb 6008. I know that it is not possible to send several samples at once using "putdata/start" because of the DAC. So I send one sample to the output using the function "putsample". When using this code:

 

ao = analogoutput('nidaq','Dev1');

ch = addchannel(ao,0);

putsample(ao,2)

 

I am sending one sample (2v) to the output. Can anyone help me to output several samples and then get a continuous signal?

I have tried the function "repeatoutput" but when verifying the output signal using an oscilloscope, I have nothing.

 

Thank you in advance

Takoua

0 Kudos
Message 1 of 3
(3,562 Views)
Solution
Accepted by topic author Takou

Hi Takou,

 

You have already post with the same topic. Is it the same think, isn't it? 

If yes, Refer to the following link:

 

How to output a sine with usb 6008 on MATLAB

http://forums.ni.com/t5/Multifunction-DAQ/How-to-output-a-sine-with-usb-6008-on-MATLAB/m-p/1510508#M...

 

Best regards,

 

0 Kudos
Message 2 of 3
(3,552 Views)

Yes it is.

Thank you Remi

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