Hello, friends.
Today we discuss how to plot an exponential function in a chart.
Or you can say I just call the exponential function from the python code and I want to load that in
the view chart for that purpose.
I already create an exponential function or here that is called from the python.
As you see in my previous video, or you can say in my exponential video, you can check.
So I just modify this.
I just delete this.
The input will come from my iteration.
Okay.
As you see.
And over here.
As you see.
Mutations are zero one, two, three, four five and it will.
I want to stop the loop when it reads to, let's say, some particular value.
So for that purpose, I just create equal to function.
So when my iteration is equal to, let's say, ten.
In that case, my loop will automatically stop and to plot the value.
I just delete this function.
And over here, I just use a chart.
So drag and drop this.
So initially, as you see, my iterations are zero one, two, three, four, five, six, seven, up
to ten.
So I just put over here, let's say 50 because my maximum value is ten.
So just connect this waveform chart to the output of this, as you see.
So when I hit on run button, we get a exponential function for different values of I for zero or 1424345,
four, five, six, up to ten.
So when I hit on run button, as you see, I got a exponential function.
So this is how we can create exponential function or how we can float exponential function in view using
python code if you want to control this value.
So I just change this to create control.
Or change to control, as you see or here, this is my y function and I want to change this control.
Okay.
So the value of this will define.
The function value.
So as you see control you.
So when I hit on run button as you see again because char will save the values.
So when I again hit on run button.
I got the values.
So when it is equal to ten, it will stop my loop.
So let's say I went to check for 20 values.
So right now.
I got the value.
So I just want to.
Clear the chart.
Let's see.
And the value is over here.
Let's say 50.
So the loop will start from zero to up to 20.
So when I hit on the run button and you see, I got the.
Exponential graph or here.
So this is how you can plot exponential graph in lab view using python code.
Thank you.