フィルターのクリア

ni daq 6008 configuration

3 ビュー (過去 30 日間)
mado
mado 2013 年 8 月 4 日
i am doing sensor measurement using ni usb 6008 and i made the configuration to be single ended channel the range should be changed to +10 to -10 but that didn't happened , I also connected the same sensor to labview signal xpress on single ended and it works very well , so i think the problem is here in matlab with my code.
%
% get connected devices
d = daq.getDevices
%create session
s = daq.createSession('ni')
%add analog channel s.addAnalogInputChannel('ID',channel num, 'measurement type')
s.addAnalogInputChannel('Dev1',3, 'Voltage')
% set rate of scan 4 scans/second , run for 3 seconds
s.Rate=4;
s.DurationInSeconds=3;
v= s.Channels(1);
set(v)
%_____________________________
v.TerminalConfig = ' single ended ';
v.Coupling = ' DC';
v
%start aquisition and plot
[data,time] = s.startForeground;
plot(time,data)
grid on
xlabel('Time (sec)')
ylabel('voltage in v')
s.release()

回答 (1 件)

mado
mado 2013 年 8 月 6 日
any help with daq

カテゴリ

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