03-10-2025 08:13 AM
Hey everyone,
I'm working on a LabVIEW project and need some help understanding how to implement it properly using a state machine design pattern.
I need to design and implement a simple VI that:
Prompts the user for:
Name
Radius
Then plots a circle with the given radius on an XY Graph.
The VI should have:
A Start button to begin the sequence
A Stop button to exit
The VI should idle initially, waiting for either Start or Stop.
Once Start is clicked:
Prompt for Name and Radius.
Plot the circle using the radius on XY Graph.
Use a state machine design pattern to structure the VI.
Has anyone done something similar? Any tips, example VIs, or suggestions on how to structure the states would be super helpful!
Thanks in advance! 😊
03-10-2025 08:57 AM
Hi KAUCHA,
@KAUCHA wrote:
Has anyone done something similar? Any tips, example VIs, or suggestions on how to structure the states would be super helpful!
Many/most of us have implemented state machines before.
LabVIEW even comes with an example for state machines: did you try to learn from that example? (Open the example finder and search for "state"…)
03-10-2025 09:00 AM
Can you make Vi. Solution of it? I would like to go through the solution. Thank you 🙂
03-10-2025 09:04 AM
Hi KAUCHA,
@KAUCHA wrote:
Can you make Vi.
Yes.
@KAUCHA wrote:
Solution of it?
It's your homework, so you have to do the actual work!
@KAUCHA wrote:
I would like to go through the solution.
Use the example provided by NI to learn from it.
Post what you have done so far, ask specific questions - then we (many of us) will help you with your task…
03-10-2025 12:51 PM
@KAUCHA wrote:
Has anyone done something similar? Any tips, example VIs, or suggestions on how to structure the states would be super helpful!
This will be a "simple VI" (your words) and should not take more than 5 minutes to complete.
As has been said, we don't do your homework, but here are some tips.
Now start coding! 😄