04-10-2012 02:42 PM
Hi Everyone,
I have a DAQ 6009, linear potentiometer and a spring.
I want to measure the displacement of a spring using the linear pot and correspond this displacement into a force by multiplying by spring constant k. (F=-k.x)
F=force, k = spring constant, x = displacment
I need to create a VI that will,
Please find attached current Labview VI and linear pot.
As you can see it is multiplying the voltage reading by 25, I want to correspond this voltage to a displacment and then multiply by 25 so I will have output in Newtons.
Thank you for your help,
John
04-10-2012 04:24 PM
Pretty pictures but no one has any idea what you did in the DAQ Assistant to set your scale. You did use a custome scale in there, didn't you?
04-10-2012 05:12 PM
I am fairly new to Labview, so excuse my lack of knowledge at the moment.
I didn't use a custom scale. Can you inform me of what to do?
I multiplied voltage by 20 to correspond it to mm then by k (25) to convert it to a force, is this correct?
I reversed the ground and 5V supply on the 6009 so it will be reading 0 when pot is fully extended?
Below is DAQ Assistant and Block diagram/front panel.
Also my read from measurement file graph is only generating a somewhat straight line instead of an actual waveform??
04-10-2012 05:30 PM
Click on the Custom Scale option in the DAQ Assistant. It would be a scale factor of 22 (110/5).
I or no one else can debug a fuzzy picture.
04-10-2012 05:51 PM
Hint: if you attach you vi to post you will get better support.
04-10-2012 06:10 PM
VI is attached.
04-11-2012 10:53 AM
The VI you posted does not match the last image.
I noticed that each time you call the Write to Measurement File, you rename the previous. Are you sure that is what you want? Each file will have 1 second worth of data.
04-11-2012 11:44 AM
Hi,
I would like to have each file record the full duration between the moment when VI is run and stopped,
Should 'next available filename' be used instead?
Apologies my updated VI using 4 potentiometers is located here, http://forums.ni.com/t5/LabVIEW/Quick-Question-Peak-Amplitude-Measurements/td-p/1947573
Thanks,
John