From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-08-2005 07:02 AM
07-11-2005 03:08 PM
Hi Chad,
It would be possible to make a VI that does a calibration on an LVDT without the user having access to the block diagram. You could programmatically have a subVI that pops up and asks the user for specific input about the measurement and then apply that data to a scaling formula of some sort to be used for the remaining measurements. I am assuming that you will want to move the LVDT a certain distance, measure its voltage and then apply that knowledge to future measurements with that LVDT. If you want to provide more information about how you are trying to calibrate the LVDT, I'd be happy to help you further.
Laura
07-12-2005 07:29 AM
07-13-2005 07:28 PM
Hi Chad,
I think you have a good start on how to do the calibration. You can make it as difficult as you want I suppose, but basically want you need to do is calculate the slope between two or more points and the offset. Once you have those values, you can apply them to adjust the distances that you acquire with your SCXI system. There is a DAQmx example that will help you get started with acquiring from your SCXI-1540. In LabVIEW if you go to help>>Find Examples you will open the example finder. Browse into the folder Hardware Input and Output >>DAQmx>>Analog Measurements>>Position and you will find examples to help you get started. There is one specifically for LVDTs. You can first acquire data to get the slope and offset and then send that data to the main part of your program that does the data acquisition. You can use a formula node or even set up a custom scale for that channel using property nodes to adjust the data you acquire according to the offset and slope.
I hope this helps you get started!
Laura
07-14-2005 07:33 AM
Good morning Laura,
Thanks for the advice so far. Yesterday, (7/13/05), I developed a way to calculate and apply the offset to zero the LVDT. I had already used DAQ Assistant to calibrate the LVDT however. I think what you described is what I need, but I'm not sure how to apply it.
Here is what I want to do
For example, if I have the LVDT in a calibrator at zero, I tell LabVIEW "This is zero". I then move the calibrator to .025" and tell LabVIEW "This is .025"". I then need some way to calculate and apply this slope (Perhaps DAQmx Channel Properties?).
I can then use the VI that I have to calculate the offset to zero the probes.
Thanks again for your help,
Chad
07-15-2005 05:35 PM
Hi Chad,
The best property node to use is the DAQmx scale property node where you can choose to specify a linear scale with a slope and a y-intercept that you have calculated from your first two measurements. After you have used this property node, all of your future measurements will be scaled accordingly until you change those values the next time you run that VI. Please let me know if you have any questions about how to do this.
Thanks,
Laura
07-18-2005 09:22 AM