1
00:00:05,000 --> 00:00:06,000
Good morning, friends.

2
00:00:07,000 --> 00:00:17,000
Today, we discuss about state machine and LabView, basically, and state machine, we have a process

3
00:00:18,000 --> 00:00:23,000
like stock, then we have initially a process.

4
00:00:24,000 --> 00:00:32,000
Then another process, which is followed by process one, then process three, process four, and at

5
00:00:32,000 --> 00:00:38,000
last stop and this you can pick an example like.

6
00:00:39,000 --> 00:00:51,000
The making process or any chemical process or any refinery process, etc., so right now I create a

7
00:00:51,000 --> 00:00:52,000
state machine program in.

8
00:00:54,000 --> 00:00:55,000
So basically.

9
00:00:56,000 --> 00:01:02,000
And four machine programming you require enum.

10
00:01:04,000 --> 00:01:12,000
So here is my end and this I just added it, just click on this.

11
00:01:13,000 --> 00:01:14,000
Good items.

12
00:01:17,000 --> 00:01:20,000
So right now it is empty.

13
00:01:20,000 --> 00:01:23,000
So I just put stock.

14
00:01:26,000 --> 00:01:28,000
Then I have processed one.

15
00:01:33,000 --> 00:01:35,000
Then process to.

16
00:01:39,000 --> 00:01:40,000
The process may be anything.

17
00:01:43,000 --> 00:01:43,000
Three.

18
00:01:47,000 --> 00:01:48,000
Process.

19
00:01:49,000 --> 00:01:50,000
For.

20
00:01:52,000 --> 00:01:56,000
Then stop at last.

21
00:01:58,000 --> 00:02:01,000
So should be deleted.

22
00:02:02,000 --> 00:02:07,000
So at first is start.

23
00:02:08,000 --> 00:02:09,000
Then.

24
00:02:18,000 --> 00:02:20,000
We have processed one.

25
00:02:22,000 --> 00:02:23,000
It should be.

26
00:02:26,000 --> 00:02:29,000
And then we have a process to.

27
00:02:30,000 --> 00:02:31,000
Professor.

28
00:02:33,000 --> 00:02:44,000
For instance, now it is OK, so it is my enemy in this case, no, I just use the while because it

29
00:02:45,000 --> 00:02:46,000
is a combination of and.

30
00:02:48,000 --> 00:02:49,000
Dr..

31
00:02:50,000 --> 00:02:51,000
And NYU.

32
00:02:52,000 --> 00:02:53,000
So here is my.

33
00:02:56,000 --> 00:02:59,000
Directly go to structures and over here you.

34
00:03:02,000 --> 00:03:07,000
This is my guest, so I just connect this and I'm.

35
00:03:08,000 --> 00:03:08,000
But.

36
00:03:09,000 --> 00:03:10,000
The case.

37
00:03:11,000 --> 00:03:15,000
So over here, this is my stock of this one.

38
00:03:17,000 --> 00:03:18,000
And duplicates.

39
00:03:21,000 --> 00:03:22,000
Process to.

40
00:03:24,000 --> 00:03:24,000
Three.

41
00:03:26,000 --> 00:03:27,000
Process for.

42
00:03:28,000 --> 00:03:31,000
And last stop.

43
00:03:32,000 --> 00:03:34,000
You just replace this.

44
00:03:35,000 --> 00:03:43,000
With separators, so it is the basic problem or basic building blocks of a state machine.

45
00:03:44,000 --> 00:03:45,000
Now, I just.

46
00:03:47,000 --> 00:03:48,000
But.

47
00:03:51,000 --> 00:03:51,000
This and.

48
00:03:53,000 --> 00:04:02,000
Over here, because at first the process will start and when it goes to start, it goes to the next

49
00:04:02,000 --> 00:04:08,000
stage and the next day is a process one over here.

50
00:04:08,000 --> 00:04:16,000
You can put anything inside this and according to that, that will perform before going to the next

51
00:04:16,000 --> 00:04:16,000
process.

52
00:04:17,000 --> 00:04:26,000
So in the process, one, when it goes to process, one when it execute, this should go to the next

53
00:04:26,000 --> 00:04:29,000
stage like process to.

54
00:04:32,000 --> 00:04:43,000
And when it goes to process, to after completing process to process, two blokes would be in this boat

55
00:04:44,000 --> 00:04:47,000
and out here it is my process three.

56
00:04:51,000 --> 00:04:55,000
Then I go to next case it is.

57
00:04:56,000 --> 00:04:57,000
Process three.

58
00:05:00,000 --> 00:05:07,000
Over here, it is process four, and now I have to select.

59
00:05:09,000 --> 00:05:17,000
Right now, I just want a stop button in my possession B and.

60
00:05:19,000 --> 00:05:26,000
Process for so I just connect this and we're here.

61
00:05:28,000 --> 00:05:36,000
I just use two functions, if it is true, then our goal is to stop.

62
00:05:39,000 --> 00:05:51,000
And if it is false, then it will remain the same process for all, you can process three process to

63
00:05:51,000 --> 00:05:51,000
two.

64
00:05:52,000 --> 00:05:56,000
So I use just go button over here.

65
00:05:57,000 --> 00:06:05,000
And the Bulan, I use stop button, so this is my stop button to stop the process.

66
00:06:07,000 --> 00:06:09,000
And I just put inside this.

67
00:06:13,000 --> 00:06:17,000
And I just came this label.

68
00:06:19,000 --> 00:06:22,000
So when it is best.

69
00:06:23,000 --> 00:06:35,000
When stuff is pressed, so it goes to next stage and over here I just put a few which will stop my process,

70
00:06:36,000 --> 00:06:40,000
so I just connect this and I label it.

71
00:06:46,000 --> 00:06:47,000
Two different.

72
00:06:49,000 --> 00:06:51,000
And will be.

73
00:06:52,000 --> 00:06:54,000
My stock is.

74
00:06:57,000 --> 00:06:59,000
Or you can use default in place of.

75
00:07:02,000 --> 00:07:03,000
It was different.

76
00:07:03,000 --> 00:07:13,000
So right now my program is ready and I am creating a digital world here, which will show me the current.

77
00:07:15,000 --> 00:07:22,000
Pollution, our current process, so I'm disconnected over here.

78
00:07:23,000 --> 00:07:24,000
And I just

79
00:07:28,000 --> 00:07:30,000
use this one, James.

80
00:07:31,000 --> 00:07:35,000
With the label and the sides should be.

81
00:07:37,000 --> 00:07:47,000
At 36, which will tell me it is the current process, so I put some delay inside this.

82
00:07:49,000 --> 00:07:51,000
So the process.

83
00:07:53,000 --> 00:07:56,000
Will be slowly moving or some relief.

84
00:07:56,000 --> 00:07:59,000
So right now I just end up around.

85
00:08:00,000 --> 00:08:08,000
So as you see stock and process, one, two, three, four, it will remains in process forward until

86
00:08:09,000 --> 00:08:09,000
I.

87
00:08:11,000 --> 00:08:12,000
Push on the stop button.

88
00:08:13,000 --> 00:08:15,000
So as I push on button.

89
00:08:17,000 --> 00:08:22,000
My next stop and the program stuff and this condition.

90
00:08:24,000 --> 00:08:30,000
OK, so this is the basic soda machine program in LabView, thank you.

