04-21-2010 08:02 PM
04-22-2010 12:17 PM
07-06-2011 04:13 PM
That's a handy tool to create the calibration curve, but, does it work for non-linear curves? Mine is slightly non-linear.
Secondly, I have my calibration curve, of voltage vs. position. In my application am measuring voltage and want to convert it back to position for a calculation. How do I extract the position values for a given measurement from the calibration data of voltage vs. position?
E.g., suppose that I measure voltage of 25mV, and by inspecting my calibration curve, I can see that corresponds to 361 position units. How do I put that calibration curve data into the vi so the vi can do the conversion for me, e.g. measure 25mV, and output 361?
Thanks,
Dave
07-07-2011 03:20 PM
Dave,
Thanks for posting. The custom scale creation dialog provides four different methods for creating scales. The one that may work for your example would be the Table option. This will allow you to choose specific points for conversion and points in between will be scaled proportionally. Additionally, the Polynomial option may also be useful if there is an equation that describes the relationship between the points. Let me know if this helps!
Regards,
Joe S.
07-08-2011 08:35 AM
Hi Joe,
Thanks for the advice. MY guess is that the Table would probably work for me, if it scales between existing points. That should be good enough for our application. ARe both of those options available in the Labview 2010 basic edition? I do not have the mathscripts add-on. ARe they in Labview or MAX?
Dave
07-08-2011 09:33 AM
Dave,
The function to create a custom scale is part of the DAQmx API and should be available in LabVIEW or Measurement & Automation Explorer. You would just need to have the NI-DAQmx driver installed.
Regards,
Joe S.
07-09-2011 11:28 AM
Thanks, Joe. I definitely have DAQmx, so, I'll start digging into it, and figure it out.
Dave
07-10-2011 09:39 PM
HI Joe,
I made the custom scale using MAX, and I used the TABLE function. Now, how do I make the vi read the values. Is the table embedded into the vi? What function do I need to actually use the custom table data. For example, I wanted a very simple vi that took an input, and then outputted the interpolated value from the curve, how do I do that?
Thanks,
Dave
07-11-2011 01:21 PM
Dave,
To start using the custom data that you set up in the table, you can just use the name of the scale that you created as an input to the DAQmx Create Virtual Channel.vi and create the rest of your data acquisition application normally. The data that you acquire will be scaled according to the values in the table you created. An example of a DAQmx program that uses a custom scale can be found here. I hope this helps!
Regards,
Joe S.
07-11-2011 03:26 PM
Hi Joe,
Thanks for the suggestion. I opened the file you offered and tried to duplicate it in my application, but, I am getting this wiring error:
"Type of sink is cluster of 3 elements, but, type of source is DAQmx scale."
I tried right clicking to change the source or sink but, can't figure out how to make them compatible. See the screen shot, please.
DAve