how to acquire data from NI 9205

6 Ansichten (letzte 30 Tage)
austin austin
austin austin am 18 Feb. 2019
Bearbeitet: austin austin am 19 Feb. 2019
Here is the data acquisition information.
ni: National Instruments NI 9205NI 9205 (DSUB) (Device ID: 'cDAQ9191-1C434351Mod1')
Analog input subsystem supports:
4 ranges supported
Rates from 0.1 to 250000.0 scans/sec
32 channels ('ai0' - 'ai31')
'Voltage' measurement type
This module is in slot 1 of the 'cDAQ-9191' chassis with the name 'cDAQ9191-1C434351'.
I want to collect data from NI 9205 for 20 seconds in two channles, and sample rate is 8000.
In labview, I can easliy collect the data. But in maltab, I tried many time, still does not work.
Below show my code, after add channels, I do not know what to do next. Is any one know what is the command to acquire the data and what is the command to set the sample rate? Thanks a lot.
s = daq.createSession('ni');
s.addAnalogInputChannel('cDAQ9191-1C434351Mod1', 'ai0', 'Voltage');
s.addAnalogInputChannel('cDAQ9191-1C434351Mod1', 'ai1', 'Voltage');

Antworten (0)

Kategorien

Mehr zu Simultaneous and Synchronized Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by