Good morning, friends.
Today, we discuss about state machine and LabView, basically, and state machine, we have a process
like stock, then we have initially a process.
Then another process, which is followed by process one, then process three, process four, and at
last stop and this you can pick an example like.
The making process or any chemical process or any refinery process, etc., so right now I create a
state machine program in.
So basically.
And four machine programming you require enum.
So here is my end and this I just added it, just click on this.
Good items.
So right now it is empty.
So I just put stock.
Then I have processed one.
Then process to.
The process may be anything.
Three.
Process.
For.
Then stop at last.
So should be deleted.
So at first is start.
Then.
We have processed one.
It should be.
And then we have a process to.
Professor.
For instance, now it is OK, so it is my enemy in this case, no, I just use the while because it
is a combination of and.
Dr..
And NYU.
So here is my.
Directly go to structures and over here you.
This is my guest, so I just connect this and I'm.
But.
The case.
So over here, this is my stock of this one.
And duplicates.
Process to.
Three.
Process for.
And last stop.
You just replace this.
With separators, so it is the basic problem or basic building blocks of a state machine.
Now, I just.
But.
This and.
Over here, because at first the process will start and when it goes to start, it goes to the next
stage and the next day is a process one over here.
You can put anything inside this and according to that, that will perform before going to the next
process.
So in the process, one, when it goes to process, one when it execute, this should go to the next
stage like process to.
And when it goes to process, to after completing process to process, two blokes would be in this boat
and out here it is my process three.
Then I go to next case it is.
Process three.
Over here, it is process four, and now I have to select.
Right now, I just want a stop button in my possession B and.
Process for so I just connect this and we're here.
I just use two functions, if it is true, then our goal is to stop.
And if it is false, then it will remain the same process for all, you can process three process to
two.
So I use just go button over here.
And the Bulan, I use stop button, so this is my stop button to stop the process.
And I just put inside this.
And I just came this label.
So when it is best.
When stuff is pressed, so it goes to next stage and over here I just put a few which will stop my process,
so I just connect this and I label it.
Two different.
And will be.
My stock is.
Or you can use default in place of.
It was different.
So right now my program is ready and I am creating a digital world here, which will show me the current.
Pollution, our current process, so I'm disconnected over here.
And I just
use this one, James.
With the label and the sides should be.
At 36, which will tell me it is the current process, so I put some delay inside this.
So the process.
Will be slowly moving or some relief.
So right now I just end up around.
So as you see stock and process, one, two, three, four, it will remains in process forward until
I.
Push on the stop button.
So as I push on button.
My next stop and the program stuff and this condition.
OK, so this is the basic soda machine program in LabView, thank you.