Hello, friends.
Today I will tell you how to build a waveform in LabVIEW and how to use that waveform graph in lab.
So first I have a waveform graph over here.
I just go to the block diagram window in this block diagram window when you just.
Put control.
H Or you just see the properties as you see over here when you just go with the bundle function.
Initially we have X not that is initial point, then we have a change.
Between two points.
Then we have a point.
Value.
That is a value.
Okay, so using this you can develop your waveform graph also.
So for that purpose I just create a for loop.
It will give me the array.
So over here I just create a control for it.
So how many numbers or how many points are required?
In my system, it will give me.
So over here I just use a random number function.
The upper value is, let's say 100.
And the lower value, let's say zero.
So it will give me 100 values.
Or not 100 values.
It depends on the points required.
Okay, so over here, I got the value of array.
Now I just go to the cluster.
This is my bundle.
You can use bundle by name or bundle.
It is up to you.
I just.
Create.
A numeric control over here for the initial value.
Over here.
This is the initial point.
On where my graph starts.
And I just also.
What a change.
Between two points.
So these are my two inputs.
So just connect initially.
First is connected to the initial.
Second one is my change and I just drag it.
Third one is my array.
So I just connect this one.
To my waveform graph.
Let's check what happened to it.
So let's say initial point is zero change between these two points.
Let's say one and over here I just need 50 points.
Like just run it.
As you see in this case, my graph is auto updated case.
X axis is auto scaled, so I just make it x scale.
Uncheck auto.
Over here.
I just put 100 values my fix right now, scale is fixed from 0 to 100.
So let's check what happened to the different values when we change it so continuously.
I run it.
It is running very fast, so I just change it.
You can put delay inside it.
So when you just change it to two means between two points, we have a scale of two.
So when you hit on again run button, so all the values are from 0 to 100.
It is scaled as you see.
Right now it is zero two, not 100 up to 99, basically.
Okay.
So because my for loop runs from zero to N minus one.
So let's say you want to just shift your graph.
So let's just make it a change one.
And over here I want to shift my graph by ten points.
So when you hit on run button, as you see it started from over here and goes to over here right now.
Again, if you want to just make a copy shift and shift as you see.
So this is how you can use waveform graph in your labview.
Now I have another example in this case.
So let's say I want to just make multiple signals.
So I just copy.
This waveform graph.
And over here, the number of points.
Is not similar to the given one, and the range is also different.
So range is let us say it is 20 to 80.
In this case.
So again, I just copy this.
So let's say I just want initial points are same.
For both the case and change is also same.
I just connect this one.
And over here I just use a build array function to add both the functions.
On.
So the both the functions on a single waveform graph.
Just run it over here.
Let's say I want, in this case, only 30 points.
So when you hit on the run button, as you see, red one is 30 points and the white one is my 50 points.
So first and second, both the and the range is different.
In this case, when you again hit on run button as you see.
So you get any type of waveform graph using your condition.
So this is how you can work with waveform graph.
Thank you.