1
00:00:10,000 --> 00:00:11,000
Hello, friends.

2
00:00:11,000 --> 00:00:17,000
Today we discuss how to plot an exponential function in a chart.

3
00:00:19,000 --> 00:00:27,000
Or you can say I just call the exponential function from the python code and I want to load that in

4
00:00:28,000 --> 00:00:30,000
the view chart for that purpose.

5
00:00:31,000 --> 00:00:37,000
I already create an exponential function or here that is called from the python.

6
00:00:37,000 --> 00:00:45,000
As you see in my previous video, or you can say in my exponential video, you can check.

7
00:00:45,000 --> 00:00:47,000
So I just modify this.

8
00:00:47,000 --> 00:00:48,000
I just delete this.

9
00:00:49,000 --> 00:00:52,000
The input will come from my iteration.

10
00:00:54,000 --> 00:00:55,000
Okay.

11
00:00:55,000 --> 00:00:56,000
As you see.

12
00:00:56,000 --> 00:00:58,000
And over here.

13
00:00:59,000 --> 00:01:00,000
As you see.

14
00:01:01,000 --> 00:01:06,000
Mutations are zero one, two, three, four five and it will.

15
00:01:07,000 --> 00:01:13,000
I want to stop the loop when it reads to, let's say, some particular value.

16
00:01:14,000 --> 00:01:19,000
So for that purpose, I just create equal to function.

17
00:01:19,000 --> 00:01:24,000
So when my iteration is equal to, let's say, ten.

18
00:01:25,000 --> 00:01:32,000
In that case, my loop will automatically stop and to plot the value.

19
00:01:32,000 --> 00:01:35,000
I just delete this function.

20
00:01:35,000 --> 00:01:38,000
And over here, I just use a chart.

21
00:01:39,000 --> 00:01:41,000
So drag and drop this.

22
00:01:41,000 --> 00:01:49,000
So initially, as you see, my iterations are zero one, two, three, four, five, six, seven, up

23
00:01:49,000 --> 00:01:49,000
to ten.

24
00:01:49,000 --> 00:01:54,000
So I just put over here, let's say 50 because my maximum value is ten.

25
00:01:55,000 --> 00:02:01,000
So just connect this waveform chart to the output of this, as you see.

26
00:02:02,000 --> 00:02:14,000
So when I hit on run button, we get a exponential function for different values of I for zero or 1424345,

27
00:02:14,000 --> 00:02:16,000
four, five, six, up to ten.

28
00:02:16,000 --> 00:02:21,000
So when I hit on run button, as you see, I got a exponential function.

29
00:02:22,000 --> 00:02:32,000
So this is how we can create exponential function or how we can float exponential function in view using

30
00:02:32,000 --> 00:02:35,000
python code if you want to control this value.

31
00:02:35,000 --> 00:02:39,000
So I just change this to create control.

32
00:02:40,000 --> 00:02:49,000
Or change to control, as you see or here, this is my y function and I want to change this control.

33
00:02:55,000 --> 00:02:55,000
Okay.

34
00:02:56,000 --> 00:03:00,000
So the value of this will define.

35
00:03:03,000 --> 00:03:05,000
The function value.

36
00:03:05,000 --> 00:03:09,000
So as you see control you.

37
00:03:10,000 --> 00:03:16,000
So when I hit on run button as you see again because char will save the values.

38
00:03:17,000 --> 00:03:20,000
So when I again hit on run button.

39
00:03:25,000 --> 00:03:26,000
I got the values.

40
00:03:27,000 --> 00:03:30,000
So when it is equal to ten, it will stop my loop.

41
00:03:30,000 --> 00:03:34,000
So let's say I went to check for 20 values.

42
00:03:36,000 --> 00:03:37,000
So right now.

43
00:03:38,000 --> 00:03:39,000
I got the value.

44
00:03:39,000 --> 00:03:41,000
So I just want to.

45
00:03:47,000 --> 00:03:48,000
Clear the chart.

46
00:03:48,000 --> 00:03:49,000
Let's see.

47
00:03:49,000 --> 00:03:51,000
And the value is over here.

48
00:03:51,000 --> 00:03:52,000
Let's say 50.

49
00:03:52,000 --> 00:03:56,000
So the loop will start from zero to up to 20.

50
00:03:56,000 --> 00:04:00,000
So when I hit on the run button and you see, I got the.

51
00:04:01,000 --> 00:04:03,000
Exponential graph or here.

52
00:04:03,000 --> 00:04:11,000
So this is how you can plot exponential graph in lab view using python code.

53
00:04:11,000 --> 00:04:11,000
Thank you.

