Same source but different signals between the Data Aquisition Toolbox and the NI softwares
4 views (last 30 days)
I have some trouble with the data acquisition toolbox. The simple program below works great for transient signals centered in 0. However, for signals with a voltage offset, the signal is set to zeros as if an high pass filter was applied. This is not an hardware problem as the signal acquired via NI softwares with the same source is correct.
We have a NI 6110 acquisition card.
Could you help me on this ?
NB : We have exactly the same issue with the Oscilloscope enbedded in the data acquisition toolbox
fe=20000; % frequence d'echantillonage
varniv=5; % Niveau d'entrée en V (à checker)
duree=5; % en seconde
AI.Channel.InputRange = [-varniv varniv];
AI.Channel.SensorRange = [-varniv varniv];
AI.Channel.UnitsRange = [-varniv varniv];
set(AI, 'SampleRate', fe)
data = getdata(AI,AI.SamplesAcquired);