Different Rate for input and output channels

1 Ansicht (letzte 30 Tage)
Sergey Makovkin
Sergey Makovkin am 22 Apr. 2016
Kommentiert: Sergey Makovkin am 25 Apr. 2016
Hi, all!
I have NI-6229 DAQ board. The specification is here:
>> daq.getDevices
ans =
ni: National Instruments PCI-6229 (Device ID: 'Dev2')
Analog input subsystem supports:
4 ranges supported
Rates from 0.1 to 250000.0 scans/sec
32 channels ('ai0' - 'ai31')
'Voltage' measurement type
Analog output subsystem supports:
-10 to +10 Volts range
Rates from 0.1 to 833333.3 scans/sec
4 channels ('ao0','ao1','ao2','ao3')
'Voltage' measurement type
Digital subsystem supports:
Rates from 0.1 to 1000000.0 scans/sec
48 channels ('port0/line0' - 'port2/line7')
'InputOnly','OutputOnly','Bidirectional' measurement types
Counter input subsystem supports:
Rates from 0.1 to 80000000.0 scans/sec
2 channels ('ctr0','ctr1')
'EdgeCount','PulseWidth','Frequency','Position' measurement types
Counter output subsystem supports:
Rates from 0.1 to 80000000.0 scans/sec
2 channels ('ctr0','ctr1')
'PulseGeneration' measurement type
Properties, Methods, Events
>>
I whant to use different Rate for input channels (250000.0 scans/sec) and for output (833333.3 scans/sec). How can I setup this?
This code:
mydaq = daq.createSession('ni');
addAnalogOutputChannel(mydaq, 'dev2', 0:1, 'Voltage')
rate = 833333.3;
mydaq.Rate = rate;
setup the Rate for both channels.

Antworten (0)

Kategorien

Mehr zu Digital Input and Output finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by