Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6009 analog output rate

I want to set the output rate of two output channels of NIDAQ 6009 in MATLAB. codes followed:

"

s1 = daq.createSession('ni');

s2 = daq.createSession('ni');

addAnalogOutputChannel(s1,'Dev1','ao0','Voltage');

addAnalogOutputChannel(s2,'Dev1','ao1','Voltage');

s1.Rate = 900;

s2.Rate = 900;"

but there is always an error at 's1.Rate = 900;'

error is 'Rate cannot exceed 0 in the current configuration.'

Is the output rate is fixed for DAQ 6009 or there is something wrong with codes?

Thank you for answering my question

Regards

Xiaoran

 

 

0 Kudos
Message 1 of 3
(2,548 Views)

Hello xiaoran94,

 

in the specification of the USB 6009 page 2

Maximum update rate 150 Hz, software-timed

Sorry, you can only use software based timing on this device for the analog output.

 
best regards
Alexander
0 Kudos
Message 2 of 3
(2,446 Views)

You only defines input channel rate.

 

ch1 = addAnalogInputChannel(s,'Dev1', 'ai1', 'Voltage')
s.Rate = 9600

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