Show calibrated value as acquiring

3 次查看(过去 30 天)
Kay
Kay 2011-3-15
Hello, I hope someone good at Matlab can help me on this issue!
What I can do so that the data in "getdata" is calibrated? What I mean is, can the scope show the units that i want instead of volts? I want to see the real time plot with the actual unit (mmHg, in my case), not volts!
thank you so much!

回答(1 个)

Walter Roberson
Walter Roberson 2011-3-15
You need to tell us more about what kind of device you are reading from and which interface driver you are using to the device.
  2 个评论
Kay
Kay 2011-3-15
I am using the USB-6009 from National Instrument!
My program is to read the blood pressure and blood flow from a rat!
After acquiring the data, I calibrate and transfer the data to mmHg and mL/min!
So, the data in "getdata" is all in Volts, I wondered if i can calibrate the data once it gets into "getdata"! (since i want to plot it at the same time!)
Walter Roberson
Walter Roberson 2011-3-15
I would suggest using getdata() with 'type' 'native', shifting the resulting integer up so that the lowest possible value is 1, and using that as an index into a lookup-up table of calibrated values (I'm assuming the voltages might not be linear response.) I don't know at the moment how you would change the legend on the scope.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Analog Input and Output 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by