Same source but different signals between the Data Aquisition Toolbox and the NI softwares
1 次查看(过去 30 天)
显示 更早的评论
Hello,
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 ?
Best regards
NB : We have exactly the same issue with the Oscilloscope enbedded in the data acquisition toolbox
The program:
daqreset;
fe=20000; % frequence d'echantillonage
varniv=5; % Niveau d'entrée en V (à checker)
duree=5; % en seconde
Nb_echant=duree*fe;
AI=analoginput('nidaq','Dev3');
input=addchannel(AI,0,{'angle'});
AI.Channel.InputRange = [-varniv varniv];
AI.Channel.SensorRange = [-varniv varniv];
AI.Channel.UnitsRange = [-varniv varniv];
set(AI, 'InputType','PseudoDifferential')
set(AI, 'SampleRate', fe)
set(AI, 'SamplesPerTrigger',Nb_echant);
set(AI,'TriggerType','Immediate'); %
start(AI);
wait(AI,duree*1.3);
data = getdata(AI,AI.SamplesAcquired);
0 个评论
采纳的回答
Manisha
2012-3-15
Hi Pierre,
Is the Coupling property set to the same value ('AC' or 'DC') in both the NI software and the Data Acquisition Toolbox?
Thanks,
Manisha
0 个评论
更多回答(3 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!