1
00:00:05,000 --> 00:00:06,000
Hello, friends.

2
00:00:06,000 --> 00:00:09,000
Today I will tell you.

3
00:00:10,000 --> 00:00:14,000
About compressing and decompressing of a digital waveform.

4
00:00:15,000 --> 00:00:22,000
So for that purpose over here in the front panel window, we just right click.

5
00:00:25,000 --> 00:00:27,000
Then just go to the search box.

6
00:00:28,000 --> 00:00:29,000
In the search box.

7
00:00:29,000 --> 00:00:32,000
We just type distal data.

8
00:00:35,000 --> 00:00:36,000
It will take some time.

9
00:00:37,000 --> 00:00:38,000
It depends on your.

10
00:00:40,000 --> 00:00:42,000
System processing.

11
00:00:59,000 --> 00:01:06,000
So as you see over here in the search palette, I just go for digital data.

12
00:01:09,000 --> 00:01:13,000
As you see over here, I got digital data.

13
00:01:13,000 --> 00:01:17,000
It is available in modern waveform digital data.

14
00:01:17,000 --> 00:01:21,000
You can search from here or you just go.

15
00:01:23,000 --> 00:01:25,000
Modern input output.

16
00:01:25,000 --> 00:01:28,000
And over here you just got digital data.

17
00:01:29,000 --> 00:01:33,000
So right now, this is my control.

18
00:01:33,000 --> 00:01:37,000
And over here, you just put your data in form of 0 or 1.

19
00:01:37,000 --> 00:01:41,000
Let's say I just put this data.

20
00:01:42,000 --> 00:01:45,000
It is nine nine.

21
00:01:46,000 --> 00:01:47,000
Then.

22
00:01:49,000 --> 00:01:50,000
I just put.

23
00:01:52,000 --> 00:01:52,000
Eight.

24
00:01:54,000 --> 00:01:55,000
Eight.

25
00:01:57,000 --> 00:01:58,000
Then I just put.

26
00:02:00,000 --> 00:02:00,000
Seven.

27
00:02:02,000 --> 00:02:02,000
Seven.

28
00:02:04,000 --> 00:02:05,000
After this.

29
00:02:05,000 --> 00:02:07,000
I just put again seven.

30
00:02:08,000 --> 00:02:09,000
Seven.

31
00:02:10,000 --> 00:02:13,000
Then after this, again, seven.

32
00:02:14,000 --> 00:02:15,000
Seven.

33
00:02:15,000 --> 00:02:17,000
Then I just put.

34
00:02:18,000 --> 00:02:18,000
One.

35
00:02:21,000 --> 00:02:21,000
One.

36
00:02:24,000 --> 00:02:25,000
One.

37
00:02:27,000 --> 00:02:28,000
One.

38
00:02:30,000 --> 00:02:32,000
Then again, one.

39
00:02:34,000 --> 00:02:35,000
One.

40
00:02:35,000 --> 00:02:46,000
And at last in this I just put f so it is my eight bit data over here I just have in this case.

41
00:02:46,000 --> 00:02:51,000
So I just go to my block diagram window over here.

42
00:02:51,000 --> 00:03:00,000
You just need to go to waveform chart and over here in the waveform, just go to digital waveform.

43
00:03:01,000 --> 00:03:04,000
As you see over here, we have two blocks.

44
00:03:04,000 --> 00:03:08,000
One is for Uncompressing and one is for compressing.

45
00:03:08,000 --> 00:03:12,000
So I just select this compress data.

46
00:03:13,000 --> 00:03:14,000
Connect this one.

47
00:03:17,000 --> 00:03:22,000
So in this case, I just drag this.

48
00:03:24,000 --> 00:03:24,000
Control.

49
00:03:25,000 --> 00:03:27,000
I just make it indicator.

50
00:03:27,000 --> 00:03:30,000
So over here, this is my output.

51
00:03:34,000 --> 00:03:36,000
And this is my input.

52
00:03:39,000 --> 00:03:39,000
Digital.

53
00:03:41,000 --> 00:03:42,000
Input data.

54
00:03:42,000 --> 00:03:42,000
Okay.

55
00:03:42,000 --> 00:03:46,000
So I just make it, select it.

56
00:03:46,000 --> 00:03:47,000
Change it to.

57
00:03:48,000 --> 00:03:49,000
Indicator.

58
00:03:50,000 --> 00:03:56,000
So just go to the block diagram window, connect it.

59
00:03:57,000 --> 00:03:58,000
When you just hit on run button.

60
00:03:58,000 --> 00:04:02,000
As you see the input data it takes.

61
00:04:03,000 --> 00:04:05,000
0 to 8 Total nine.

62
00:04:05,000 --> 00:04:09,000
Eight bit data was there when I hit on run button.

63
00:04:09,000 --> 00:04:17,000
As you see over here, only one, two, three, four, five data are available over here.

64
00:04:17,000 --> 00:04:27,000
So by compressing the data over here, as you see this seven seven, seven, seven, 777 is repeated

65
00:04:27,000 --> 00:04:28,000
three times.

66
00:04:28,000 --> 00:04:31,000
And over here, one is repeated.

67
00:04:32,000 --> 00:04:34,000
One is over here.

68
00:04:34,000 --> 00:04:34,000
Over here.

69
00:04:34,000 --> 00:04:36,000
Fifth, sixth and seventh.

70
00:04:36,000 --> 00:04:37,000
We got one.

71
00:04:37,000 --> 00:04:38,000
One.

72
00:04:38,000 --> 00:04:41,000
Okay, so it just take only once.

73
00:04:41,000 --> 00:04:46,000
So as you see at the zero position, we have nine nine again in the output.

74
00:04:46,000 --> 00:04:48,000
We have nine nine.

75
00:04:49,000 --> 00:04:51,000
Then we have first position.

76
00:04:51,000 --> 00:04:52,000
We have 88.

77
00:04:53,000 --> 00:04:54,000
First position.

78
00:04:54,000 --> 00:04:55,000
We have 88.

79
00:04:55,000 --> 00:04:59,000
In the second position we have 77 third, fourth skipped.

80
00:04:59,000 --> 00:05:00,000
Then fifth position.

81
00:05:00,000 --> 00:05:09,000
We have one one again, we have one one in the eighth position we have F Okay, so I'm just dealing

82
00:05:09,000 --> 00:05:11,000
with hexadecimal.

83
00:05:12,000 --> 00:05:13,000
Number.

84
00:05:13,000 --> 00:05:18,000
So right now, I just again go to my blog diagram window.

85
00:05:18,000 --> 00:05:19,000
Go to waveform.

86
00:05:20,000 --> 00:05:21,000
Over here.

87
00:05:21,000 --> 00:05:23,000
Just go to the digital waveform.

88
00:05:23,000 --> 00:05:26,000
If you want to just compress.

89
00:05:27,000 --> 00:05:28,000
Is data.

90
00:05:28,000 --> 00:05:30,000
Over here we have compressed data.

91
00:05:30,000 --> 00:05:36,000
I just connect this one and just make a copy of this again.

92
00:05:37,000 --> 00:05:40,000
This is the uncompressed output.

93
00:05:43,000 --> 00:05:48,000
So in this case, the output should be same.

94
00:05:48,000 --> 00:05:52,000
No, this is equivalent to your input data.

95
00:05:52,000 --> 00:05:53,000
Okay.

96
00:05:53,000 --> 00:05:57,000
So when I just hit on run button, so first you have to connect this.

97
00:05:59,000 --> 00:06:03,000
So when you hit on run button, complete data is available with me.

98
00:06:03,000 --> 00:06:10,000
As you see, this is my uncompressed data and if you want to just plot it also.

99
00:06:10,000 --> 00:06:11,000
Let's.

100
00:06:12,000 --> 00:06:15,000
Take a digital waveform over here.

101
00:06:15,000 --> 00:06:16,000
Go to.

102
00:06:18,000 --> 00:06:20,000
Our data.

103
00:06:20,000 --> 00:06:22,000
Let's connect this.

104
00:06:22,000 --> 00:06:26,000
And when you hit on run button, as you see, you got the.

105
00:06:27,000 --> 00:06:31,000
Data that is available over here.

106
00:06:31,000 --> 00:06:38,000
So as you see over here, we have line zero, line one, line two, line three, line four, line five.

107
00:06:38,000 --> 00:06:42,000
And if you want to just drag this.

108
00:06:43,000 --> 00:06:46,000
Or you want to just increase this.

109
00:06:47,000 --> 00:06:48,000
It is up to you.

110
00:06:49,000 --> 00:06:52,000
So total eight lines are there.

111
00:06:53,000 --> 00:06:56,000
I just go to the data visibility.

112
00:06:57,000 --> 00:07:01,000
In this case, I just x scrollbar.

113
00:07:02,000 --> 00:07:03,000
You just.

114
00:07:05,000 --> 00:07:08,000
Select the data from here.

115
00:07:12,000 --> 00:07:13,000
You just add.

116
00:07:20,000 --> 00:07:22,000
X and Y properties over here.

117
00:07:23,000 --> 00:07:24,000
Otherwise scale.

118
00:07:24,000 --> 00:07:33,000
As you see when I just click on auto scale, total seven 0 to 7, because in this case I have eight

119
00:07:33,000 --> 00:07:34,000
bit data.

120
00:07:34,000 --> 00:07:38,000
The data over here is like this, as you see in this.

121
00:07:38,000 --> 00:07:40,000
This is my line zero.

122
00:07:40,000 --> 00:07:42,000
This is line one, this is line two.

123
00:07:42,000 --> 00:07:50,000
Column wise data is present over here as you see, line zero one, two, three, four, five, six,

124
00:07:50,000 --> 00:07:51,000
seven.

125
00:07:51,000 --> 00:07:55,000
And in the seventh line, last data is my one.

126
00:07:55,000 --> 00:07:59,000
As you see over here in the all the cases, we have one over here.

127
00:08:00,000 --> 00:08:00,000
Okay.

128
00:08:00,000 --> 00:08:02,000
So as you see over here.

129
00:08:03,000 --> 00:08:08,000
So this is how you can plot your data if you want to invert this data.

130
00:08:08,000 --> 00:08:09,000
It is up to you.

131
00:08:10,000 --> 00:08:14,000
So let's just again go to our.

132
00:08:16,000 --> 00:08:17,000
Block diagram window.

133
00:08:17,000 --> 00:08:23,000
And over here, I just again, copy this data right now.

134
00:08:23,000 --> 00:08:26,000
This is connected to the.

135
00:08:27,000 --> 00:08:29,000
Compressed data.

136
00:08:29,000 --> 00:08:31,000
Over here we have compressed data.

137
00:08:31,000 --> 00:08:32,000
And this is.

138
00:08:33,000 --> 00:08:36,000
Let's connect it to over here.

139
00:08:37,000 --> 00:08:38,000
Let's check what happened.

140
00:08:39,000 --> 00:08:41,000
As you see over here.

141
00:08:43,000 --> 00:08:45,000
This is my graph too.

142
00:08:45,000 --> 00:08:52,000
And if you want to just invert this data, you just insert in between.

143
00:08:56,000 --> 00:08:57,000
Not function.

144
00:08:58,000 --> 00:09:00,000
Let's check what happened.

145
00:09:01,000 --> 00:09:06,000
It is not connected because in this case it will convert only single line.

146
00:09:08,000 --> 00:09:08,000
And told me.

147
00:09:10,000 --> 00:09:17,000
You have to convert this data into array form first, then you have to invert this data.

148
00:09:17,000 --> 00:09:21,000
So again, I just go to waveform over here.

149
00:09:21,000 --> 00:09:26,000
I just go to digital waveform if you want to check the digital size.

150
00:09:27,000 --> 00:09:30,000
We just go with this function the size.

151
00:09:31,000 --> 00:09:34,000
I just connect this function.

152
00:09:34,000 --> 00:09:40,000
And over here you just get the number of samples in this case.

153
00:09:41,000 --> 00:09:44,000
Number of samples present in this case.

154
00:09:44,000 --> 00:09:48,000
And over here, number of signals in the particular.

155
00:09:49,000 --> 00:09:53,000
Waveform you just get from here.

156
00:09:53,000 --> 00:09:57,000
So let's just run it once.

157
00:09:58,000 --> 00:10:05,000
As you see, a number of signals are eight and number of samples are nine.

158
00:10:05,000 --> 00:10:15,000
As you see, from 0 to 8, we have total nine samples are there if you just put more samples to it.

159
00:10:15,000 --> 00:10:25,000
As you see, 180 80 is available over here when I just run it, as you see at last, total number of

160
00:10:25,000 --> 00:10:29,000
samples are ten now and the number of signals are again eight.

161
00:10:29,000 --> 00:10:39,000
If you want to just increase the samples, number of signals also in this case, you just need to add

162
00:10:39,000 --> 00:10:40,000
one column over here.

163
00:10:42,000 --> 00:10:44,000
As you see, I just put.

164
00:10:45,000 --> 00:10:47,000
100 column is there.

165
00:10:47,000 --> 00:10:51,000
If you want to add one more over here, just put.

166
00:10:52,000 --> 00:10:54,000
100 is there.

167
00:10:54,000 --> 00:11:02,000
And in this case, as you see, 841 system is there right now.

168
00:11:02,000 --> 00:11:03,000
It is to.

169
00:11:05,000 --> 00:11:08,000
The data is changed over here when I run it.

170
00:11:08,000 --> 00:11:11,000
As you see, the number of samples are ten.

171
00:11:11,000 --> 00:11:13,000
Number of signals are also ten.

172
00:11:13,000 --> 00:11:21,000
And if you want to just delete this particular column, you just need to select this one.

173
00:11:23,000 --> 00:11:24,000
Right click.

174
00:11:27,000 --> 00:11:30,000
And delete row or column options are there.

175
00:11:30,000 --> 00:11:33,000
You just delete column and when again you hit on run button.

176
00:11:33,000 --> 00:11:41,000
In this case, total number of signals are nine and total number of samples are ten.

177
00:11:41,000 --> 00:11:44,000
It is up to you how to use this data.

178
00:11:45,000 --> 00:11:48,000
So this is all about today's lecture.

179
00:11:48,000 --> 00:11:49,000
Thank you.

