1
00:00:10,000 --> 00:00:11,000
Hello, friends.

2
00:00:11,000 --> 00:00:21,000
Today I will discuss another problem related to sequence and this we use a tank and I want to control

3
00:00:22,000 --> 00:00:24,000
the liquid level, not control.

4
00:00:25,000 --> 00:00:31,000
I want to just fill the tank and empty the tank using that sequence for the purpose.

5
00:00:32,000 --> 00:00:35,000
I just use a tank over here.

6
00:00:35,000 --> 00:00:39,000
As you see, this is my tank.

7
00:00:39,000 --> 00:00:44,000
And the best is, let's say, 200.

8
00:00:45,000 --> 00:00:52,000
And I just go to my step right sequence, just put inside the tank.

9
00:00:52,000 --> 00:01:04,000
And over here I just use a four loop and I just connect the iteration to tank input.

10
00:01:04,000 --> 00:01:10,000
And over here the tank level should be 100.

11
00:01:12,000 --> 00:01:15,000
So it give me up to 100.

12
00:01:15,000 --> 00:01:18,000
So let's say it is 101.

13
00:01:19,000 --> 00:01:28,000
So it will goes from 0 to 100 because for loop transport and minus one up to and minus one, it runs

14
00:01:28,000 --> 00:01:31,000
from zero to up to MN minus one.

15
00:01:31,000 --> 00:01:33,000
I put some delay inside it.

16
00:01:36,000 --> 00:01:38,000
Let's say 60 seconds.

17
00:01:39,000 --> 00:01:50,000
I just add another frame and over here I want to draw another for loop.

18
00:01:50,000 --> 00:01:56,000
And the iterations are same as you see.

19
00:01:56,000 --> 00:02:05,000
And over here I want to just subtract because in the next frame over here the tank will fill and in

20
00:02:05,000 --> 00:02:08,000
the next frame, the tank will empty automatically.

21
00:02:09,000 --> 00:02:11,000
So over here.

22
00:02:14,000 --> 00:02:15,000
This is my.

23
00:02:17,000 --> 00:02:18,000
And value.

24
00:02:20,000 --> 00:02:22,000
And this is my initial value.

25
00:02:22,000 --> 00:02:27,000
So over here, I want to just use a local variable.

26
00:02:28,000 --> 00:02:32,000
So create a local variable.

27
00:02:32,000 --> 00:02:38,000
Let's check now or some delay inside also

28
00:02:46,000 --> 00:02:47,000
for continuous.

29
00:02:50,000 --> 00:02:51,000
Feeling and emptiness.

30
00:02:52,000 --> 00:02:53,000
I just create a control.

31
00:02:54,000 --> 00:02:55,000
Control you?

32
00:02:55,000 --> 00:02:56,000
Let's check.

33
00:02:58,000 --> 00:03:00,000
And you see Tank is filling

34
00:03:03,000 --> 00:03:04,000
now.

35
00:03:04,000 --> 00:03:05,000
It is empty.

36
00:03:06,000 --> 00:03:11,000
So you can use we can also call it a scatter system also.

37
00:03:12,000 --> 00:03:23,000
So when first case, first frame is executing, in that case, the value is filling.

38
00:03:23,000 --> 00:03:29,000
And when second frame is there, the value goes on decreasing as you see.

39
00:03:30,000 --> 00:03:35,000
So this is how you can use sequence structure for your card system.

40
00:03:36,000 --> 00:03:37,000
Thank you.

