Different Rate for input and output channels

1 回表示 (過去 30 日間)
Sergey Makovkin
Sergey Makovkin 2016 年 4 月 22 日
コメント済み: Sergey Makovkin 2016 年 4 月 25 日
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.
  1 件のコメント
Sergey Makovkin
Sergey Makovkin 2016 年 4 月 25 日
Just a reminder.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDigital Input and Output についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by