05-19-2015 04:57 PM
I am slowly learning Labview and need help on a VI.
Application: I want to take calibrate a displacement laser taking one data point at 30 different dispalcements.
I would like to input the displacement (mm- 0 to 30 mm) before taking the data point.
I would like to dosplay them side by side.
Example: 0 mm 0 volts ; 3mm ? volts ; 15mm ? volts
05-19-2015 06:51 PM
@terry_LETU wrote:
I am slowly learning Labview and need help on a VI.
Application: I want to take calibrate a displacement laser taking one data point at 30 different dispalcements.
I would like to input the displacement (mm- 0 to 30 mm) before taking the data point.
I would like to dosplay them side by side.
Example: 0 mm 0 volts ; 3mm ? volts ; 15mm ? volts
Great. So what are you having problems with?
This sounds like a simple state machine with an event structure for allowing the user to enter a distance and then allow the user to take the measurement. I would display the results in a table.
05-20-2015 08:03 AM
You correctly understand the need. The problem I am having is that I have not understood a way to do this. I looked on line for tutorials but non appeared to provide a way to do it. Would you have an example?
05-20-2015 08:36 AM
Start by breaking down your problem into much smaller problems. These will be the states you will need to create. Start with allowing the user to enter a value. Then make a state for reading the measurement. Then make a state for building up your table.
When the problem is broken down like this, it suddenly becomes a lot easier.
05-21-2015 08:19 AM
Hi terry_LETU,
In this link you'll find a video on how to create an Event Driven state machine, so you can get started with your project as crossrulz adviced.
LabVIEW Tips&Tricks Episode 3: Event driven state machine - YouTube
https://www.youtube.com/watch?v=RuIN31rSO2k
Regards,
Carolina