1
00:00:05,000 --> 00:00:06,000
Hello, friends.

2
00:00:06,000 --> 00:00:17,000
Today I will tell you how to build a waveform in LabVIEW and how to use that waveform graph in lab.

3
00:00:17,000 --> 00:00:21,000
So first I have a waveform graph over here.

4
00:00:21,000 --> 00:00:29,000
I just go to the block diagram window in this block diagram window when you just.

5
00:00:31,000 --> 00:00:32,000
Put control.

6
00:00:32,000 --> 00:00:42,000
H Or you just see the properties as you see over here when you just go with the bundle function.

7
00:00:42,000 --> 00:00:48,000
Initially we have X not that is initial point, then we have a change.

8
00:00:49,000 --> 00:00:51,000
Between two points.

9
00:00:51,000 --> 00:00:53,000
Then we have a point.

10
00:00:53,000 --> 00:00:54,000
Value.

11
00:00:54,000 --> 00:00:55,000
That is a value.

12
00:00:56,000 --> 00:01:00,000
Okay, so using this you can develop your waveform graph also.

13
00:01:00,000 --> 00:01:05,000
So for that purpose I just create a for loop.

14
00:01:06,000 --> 00:01:08,000
It will give me the array.

15
00:01:09,000 --> 00:01:12,000
So over here I just create a control for it.

16
00:01:12,000 --> 00:01:17,000
So how many numbers or how many points are required?

17
00:01:18,000 --> 00:01:21,000
In my system, it will give me.

18
00:01:21,000 --> 00:01:26,000
So over here I just use a random number function.

19
00:01:29,000 --> 00:01:31,000
The upper value is, let's say 100.

20
00:01:32,000 --> 00:01:35,000
And the lower value, let's say zero.

21
00:01:36,000 --> 00:01:39,000
So it will give me 100 values.

22
00:01:40,000 --> 00:01:42,000
Or not 100 values.

23
00:01:42,000 --> 00:01:44,000
It depends on the points required.

24
00:01:46,000 --> 00:01:49,000
Okay, so over here, I got the value of array.

25
00:01:50,000 --> 00:01:52,000
Now I just go to the cluster.

26
00:01:53,000 --> 00:01:54,000
This is my bundle.

27
00:01:54,000 --> 00:01:56,000
You can use bundle by name or bundle.

28
00:01:57,000 --> 00:01:57,000
It is up to you.

29
00:01:59,000 --> 00:01:59,000
I just.

30
00:02:00,000 --> 00:02:01,000
Create.

31
00:02:02,000 --> 00:02:06,000
A numeric control over here for the initial value.

32
00:02:09,000 --> 00:02:09,000
Over here.

33
00:02:10,000 --> 00:02:12,000
This is the initial point.

34
00:02:13,000 --> 00:02:16,000
On where my graph starts.

35
00:02:16,000 --> 00:02:18,000
And I just also.

36
00:02:19,000 --> 00:02:21,000
What a change.

37
00:02:22,000 --> 00:02:23,000
Between two points.

38
00:02:28,000 --> 00:02:30,000
So these are my two inputs.

39
00:02:34,000 --> 00:02:37,000
So just connect initially.

40
00:02:37,000 --> 00:02:39,000
First is connected to the initial.

41
00:02:39,000 --> 00:02:43,000
Second one is my change and I just drag it.

42
00:02:43,000 --> 00:02:45,000
Third one is my array.

43
00:02:45,000 --> 00:02:49,000
So I just connect this one.

44
00:02:50,000 --> 00:02:52,000
To my waveform graph.

45
00:02:52,000 --> 00:02:54,000
Let's check what happened to it.

46
00:02:55,000 --> 00:02:59,000
So let's say initial point is zero change between these two points.

47
00:02:59,000 --> 00:03:03,000
Let's say one and over here I just need 50 points.

48
00:03:04,000 --> 00:03:05,000
Like just run it.

49
00:03:06,000 --> 00:03:11,000
As you see in this case, my graph is auto updated case.

50
00:03:11,000 --> 00:03:16,000
X axis is auto scaled, so I just make it x scale.

51
00:03:18,000 --> 00:03:19,000
Uncheck auto.

52
00:03:19,000 --> 00:03:20,000
Over here.

53
00:03:20,000 --> 00:03:25,000
I just put 100 values my fix right now, scale is fixed from 0 to 100.

54
00:03:25,000 --> 00:03:31,000
So let's check what happened to the different values when we change it so continuously.

55
00:03:31,000 --> 00:03:31,000
I run it.

56
00:03:32,000 --> 00:03:37,000
It is running very fast, so I just change it.

57
00:03:37,000 --> 00:03:39,000
You can put delay inside it.

58
00:03:39,000 --> 00:03:47,000
So when you just change it to two means between two points, we have a scale of two.

59
00:03:47,000 --> 00:03:53,000
So when you hit on again run button, so all the values are from 0 to 100.

60
00:03:53,000 --> 00:03:55,000
It is scaled as you see.

61
00:03:56,000 --> 00:04:01,000
Right now it is zero two, not 100 up to 99, basically.

62
00:04:01,000 --> 00:04:02,000
Okay.

63
00:04:02,000 --> 00:04:06,000
So because my for loop runs from zero to N minus one.

64
00:04:06,000 --> 00:04:10,000
So let's say you want to just shift your graph.

65
00:04:10,000 --> 00:04:13,000
So let's just make it a change one.

66
00:04:13,000 --> 00:04:17,000
And over here I want to shift my graph by ten points.

67
00:04:17,000 --> 00:04:24,000
So when you hit on run button, as you see it started from over here and goes to over here right now.

68
00:04:24,000 --> 00:04:32,000
Again, if you want to just make a copy shift and shift as you see.

69
00:04:33,000 --> 00:04:38,000
So this is how you can use waveform graph in your labview.

70
00:04:38,000 --> 00:04:42,000
Now I have another example in this case.

71
00:04:43,000 --> 00:04:49,000
So let's say I want to just make multiple signals.

72
00:04:49,000 --> 00:04:50,000
So I just copy.

73
00:04:52,000 --> 00:04:53,000
This waveform graph.

74
00:04:57,000 --> 00:04:59,000
And over here, the number of points.

75
00:05:03,000 --> 00:05:07,000
Is not similar to the given one, and the range is also different.

76
00:05:07,000 --> 00:05:12,000
So range is let us say it is 20 to 80.

77
00:05:12,000 --> 00:05:13,000
In this case.

78
00:05:14,000 --> 00:05:16,000
So again, I just copy this.

79
00:05:18,000 --> 00:05:22,000
So let's say I just want initial points are same.

80
00:05:24,000 --> 00:05:26,000
For both the case and change is also same.

81
00:05:28,000 --> 00:05:30,000
I just connect this one.

82
00:05:30,000 --> 00:05:36,000
And over here I just use a build array function to add both the functions.

83
00:05:38,000 --> 00:05:38,000
On.

84
00:05:40,000 --> 00:05:43,000
So the both the functions on a single waveform graph.

85
00:05:44,000 --> 00:05:47,000
Just run it over here.

86
00:05:47,000 --> 00:05:51,000
Let's say I want, in this case, only 30 points.

87
00:05:53,000 --> 00:06:01,000
So when you hit on the run button, as you see, red one is 30 points and the white one is my 50 points.

88
00:06:01,000 --> 00:06:05,000
So first and second, both the and the range is different.

89
00:06:05,000 --> 00:06:09,000
In this case, when you again hit on run button as you see.

90
00:06:09,000 --> 00:06:15,000
So you get any type of waveform graph using your condition.

91
00:06:15,000 --> 00:06:18,000
So this is how you can work with waveform graph.

92
00:06:18,000 --> 00:06:19,000
Thank you.

