フィルターのクリア

Channel editing problem at the Data Aquisition Toolbox

3 ビュー (過去 30 日間)
Daniel Hoffmann
Daniel Hoffmann 2015 年 9 月 16 日
回答済み: Walter Roberson 2015 年 9 月 18 日
Hell I dont understand the failure or the problem at the channel editing. Can someone help me please?
The Failure is shown at the picture and the m.file is shown below.
ai = daq.createSession('ni');
ai.Rate = 50000; % Abtastrate
% Initialisierung der 3 analogen Eingänge
chan1 = addAnalogInputChannel(ai,'Dev6', 'ai0', 'Voltage');
chan1.DuratioInSeconds = 0.5; % Messzeit
chan1.Range = [-0.2,0.2]; % Grenzwerte AD Wandler
chan2 = addAnalogInputChannel(ai,'Dev6', 'ai1', 'Voltage');
chan2.DuratioInSeconds = 0.5; % Messzeit
chan2.Range = [-0.2,0.2]; % Grenzwerte AD Wandler
chan3 = addAnalogInputChannel(ai,'Dev6', 'ai2', 'Voltage');
chan3.DuratioInSeconds = 0.5; % Messzeit
chan3.Range = [-0.2,0.2]; % Gr
enzwerte AD Wandler

回答 (2 件)

Tim Jackman
Tim Jackman 2015 年 9 月 18 日
When you add an analog input channel using the command addAnalogInputChannel, you create an object for the channel that has specific properties. The properties are listed here:
Range is a defined property of this object type, but DuratioInSeconds is not. This is why you are getting this error.

Walter Roberson
Walter Roberson 2015 年 9 月 18 日

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by