Two signals from one analog i/p channel using Analog Input block of Data Acquisition Toolbox
2 次查看(过去 30 天)
显示 更早的评论
https://www.dropbox.com/sh/28hkrkt8voe5e3y/yPr35z1QqK
I am using the Analog Input block of Data Acquisition Toolbox of Simulink and am seeing two values for one channel. I am using a NI USB-6212 mass determination device. Data is collected at 200 Hz and I have tried using different modes (Differential / SRE / NRSE) but in vain. I am using sample-based signal type.
In the two figures on dropbox link, the top sub-plot is raw data (in V), middle one is data after removing dc-offset and passing through a low pass filter (12 Hz) and last sub-plot is after applying an appropriate gain to see the response (I am interested in measuring angular displacement, so the last sup-plot is in deg).
I understand that there is noise in the system (which is a separate problem and I am working on it) but nonetheless I could not understand as why should I see two signals even though I have selected only one channel. May be I am not clear as how this block interprets the incoming signal.
I double checked the signal in NI's Measurement and Automation Explorer and see only one signal as I expect (with noise of similar magnitude).
Any help will be greatly appreciated.
Thanks Rahul
0 个评论
采纳的回答
Shankar Subramanian
2013-4-25
Hi Rahul,
The two values that you see are because the Block Size is set to 2 for NI devices in clocked acquisition mode. Block size is a parameter on the mask as well. You cannot set a value less than 2. You can connect the output of AI block to drop one value out of it before your processing blocks run.
HTH,
Shankar
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Data Acquisition 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!