NI 9263 cDAQ1 gives the output signal just between -5 to +5 Volt instead of +/-10, using Matlab ICT

3 views (last 30 days)
During a laboratory test I use an NI 9263 instrument for giving +/-10 V to an MTS MicroConsole. Somehow, the qued output data, that is between -10 and +10 Volts, just appeared to cause displacements that would belog to +/-5 V output signal. It seems, that the used MatLab functions halves my signal... I have not changed the range of the instrument (as it states as well), and the controlling program given with the NI device gives good results, as well, as a simple 9V baterry. This why I would say, that the error is somewhere inside the code...
if true
% controlling NI 9263 DAQ
% function
x=0:0.001:10; %--> signal is 10s long
y=sin(x)*9; %--> sine with a +/-9 amplitude
% plot(x,y);title('signal');
% Getting the device
daq.getDevices()
% result:
% cDAQ1Mod1: National Instruments NI 9263
% Analog output subsystem supports:
% -10 to +10 Volts range
% Rates from 0.0 to 100000.0 scans/sec
% 4 channels
% 'voltage' measurement type
%
% This module is in chassis 'cDAQ1', slot 1
%
% que the data
s = daq.createSession('ni');
s.addAnalogOutputChannel('cDAQ1Mod1', 'ao0', 'voltage'); %in R2014b 'Voltage' !!!
s.queueOutputData (y');
% start the signal
s.startForeground;
% end of signal
s.removeChannel(1)
end
Thenk You for any help! Bests!

Answers (0)

Categories

Find more on MATLAB Support Packages in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!