Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Run DAQmx matlab DAQmxWriteAnalogF64 problem

Hello,

I try to output with matlab a simple signal through USB NI DAQ 6211 with the DAQmxWriteAnalogF64 function.

It seems that i can only output the first sample of my signal.

Also even if i'm using FiniteSample and a timeout, the voltage seems to be played continuously.

 

Attached is my code.

 

Thanks

0 Kudos
Message 1 of 3
(3,262 Views)

Nobody to have a look at the attached script please..?

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

Hello pierreh,

 

It would be difficult for us to look into the matlab code on this forum.

 

Can you try to see if you get the correct output signal in Measurement and Automation Explorer? If it is correct there, then the problem would be in the implementation of your code.

 

Regards

Shalini B
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 3 of 3
(3,184 Views)