1
00:00:12,000 --> 00:00:13,000
Hello, friends.

2
00:00:13,000 --> 00:00:18,000
Today I will tell you about national instruments.

3
00:00:18,000 --> 00:00:21,000
USB 6009.

4
00:00:21,000 --> 00:00:32,000
It is a DAC card, as you see over here on this side, we have different pins like ground plus five

5
00:00:32,000 --> 00:00:37,000
plus 2.5 and some other digital ports.

6
00:00:37,000 --> 00:00:47,000
As you see over here, we have pin zero port zero, then pin zero port zero pin number one.

7
00:00:47,000 --> 00:00:57,000
After that, up to seven we have port one pin zero, port, one pin, one port, one pin two, and then

8
00:00:58,000 --> 00:01:01,000
we have port one pin three.

9
00:01:01,000 --> 00:01:04,000
And after that we have paf I zero.

10
00:01:04,000 --> 00:01:07,000
All these are my digital pins.

11
00:01:08,000 --> 00:01:11,000
On the other side we have analog pins.

12
00:01:11,000 --> 00:01:20,000
As you see, I stands for analog input zero in USB 6009.

13
00:01:20,000 --> 00:01:30,000
We have four differential analog inputs and eight single ended inputs, analog inputs.

14
00:01:30,000 --> 00:01:36,000
And other than this, we have, as you see over here, analog output, port zero, analog output, port

15
00:01:36,000 --> 00:01:42,000
one and ground analog output A0 stands for analog output.

16
00:01:42,000 --> 00:01:48,000
So this is some basic introduction as you see over here.

17
00:01:48,000 --> 00:01:55,000
Eight inputs 14 bit function input output DAC card it is.

18
00:02:20,000 --> 00:02:20,000
Hello, friends.

19
00:02:21,000 --> 00:02:37,000
Today I will tell you how to connect or how to use any USB 6009 DAC card for generating digital signal.

20
00:02:37,000 --> 00:02:47,000
For that purpose, first of all, you have to connect your USB 6009 DAC card to your PC.

21
00:02:47,000 --> 00:02:51,000
When you connect this through the USB, it will blink.

22
00:02:51,000 --> 00:02:53,000
As you see in the video.

23
00:02:54,000 --> 00:03:07,000
So for here I have a breadboard as you see I just some jumping wire or you can say jumper wires.

24
00:03:08,000 --> 00:03:14,000
These are my male to male jumper wires and I have one led.

25
00:03:15,000 --> 00:03:19,000
I just use it for generating a signal.

26
00:03:20,000 --> 00:03:30,000
Right now I just generate a signal digital signal using this and I 6009 card to glow the Led.

27
00:03:31,000 --> 00:03:36,000
So just go to the software part.

28
00:03:37,000 --> 00:03:43,000
So just create a new as you see over here this is my UI.

29
00:03:45,000 --> 00:03:52,000
Now I just go to any DMX toolbox.

30
00:03:53,000 --> 00:04:00,000
So in this box I just use different nodes.

31
00:04:01,000 --> 00:04:11,000
So right click measurement, input output and I let Max just lock it.

32
00:04:13,000 --> 00:04:18,000
As you see over here, this is my block diagram window and this is my front panel window.

33
00:04:18,000 --> 00:04:21,000
So first I just create channel.

34
00:04:21,000 --> 00:04:25,000
I want to work with third signals.

35
00:04:25,000 --> 00:04:32,000
So just select this output because I want to just generate a signal.

36
00:04:33,000 --> 00:04:43,000
Now just drag and drop, start the task, connect it to error out.

37
00:04:44,000 --> 00:04:55,000
Now I just want to right, so just put over here.

38
00:04:55,000 --> 00:04:58,000
Next, I want to stop the task.

39
00:05:03,000 --> 00:05:09,000
Connect it and I want to do it many times.

40
00:05:09,000 --> 00:05:15,000
So that's why I just put a while loop over the writing task.

41
00:05:15,000 --> 00:05:19,000
And the writing task is my digital writing.

42
00:05:19,000 --> 00:05:24,000
So select single channel, single sample pooling line.

43
00:05:24,000 --> 00:05:39,000
Okay, So over here on the line is just create a constant so that as you see over here, the name of

44
00:05:39,000 --> 00:05:43,000
the device is Dev one port 090.

45
00:05:43,000 --> 00:05:50,000
If you want to check out what device is connected, you just go to an Imax.

46
00:05:52,000 --> 00:06:02,000
You can check your hardware device using this and Imax if it is some creating some problem.

47
00:06:02,000 --> 00:06:05,000
So I just go to Imax.

48
00:06:09,000 --> 00:06:15,000
So over here in the device and interface, just click over here.

49
00:06:20,000 --> 00:06:20,000
Here.

50
00:06:20,000 --> 00:06:24,000
You get all the information regarding your system right now.

51
00:06:24,000 --> 00:06:31,000
My system is Intel core i3 1.7GHz speed.

52
00:06:32,000 --> 00:06:35,000
It is the information of my system.

53
00:06:35,000 --> 00:06:36,000
Okay.

54
00:06:36,000 --> 00:06:43,000
And over here, this is the device which is connected to my system.

55
00:06:46,000 --> 00:06:50,000
So over here, this is the serial number and it is present.

56
00:06:50,000 --> 00:06:59,000
If I disconnect it, you see it is not present, so I just connect it again.

57
00:06:59,000 --> 00:07:01,000
So now it is present.

58
00:07:01,000 --> 00:07:06,000
Okay, so I just close it.

59
00:07:07,000 --> 00:07:21,000
So right now I just use old 090 or device one, select it and I just use a simple error handler from

60
00:07:21,000 --> 00:07:22,000
the dialog box.

61
00:07:23,000 --> 00:07:24,000
If some error is there,

62
00:07:27,000 --> 00:07:33,000
now you have to select or create signal.

63
00:07:33,000 --> 00:07:35,000
So I just use a push button.

64
00:07:37,000 --> 00:07:38,000
It will generate signal.

65
00:07:39,000 --> 00:07:40,000
True or false?

66
00:07:42,000 --> 00:07:43,000
Connect it.

67
00:07:43,000 --> 00:07:49,000
So over here, this is the signal from the LCD.

68
00:07:49,000 --> 00:07:55,000
And over here, this is my control button to stop the loop.

69
00:07:58,000 --> 00:07:58,000
So

70
00:08:01,000 --> 00:08:02,000
this is my stopping button.

71
00:08:05,000 --> 00:08:08,000
I just use one led.

72
00:08:08,000 --> 00:08:15,000
Virtual led to indicate the status inside the software.

73
00:08:16,000 --> 00:08:18,000
So over here, this is my lead.

74
00:08:20,000 --> 00:08:21,000
So connected.

75
00:08:23,000 --> 00:08:27,000
So when it is high, high signal goes to the outer world.

76
00:08:27,000 --> 00:08:30,000
When it is low, low signal goes to the outer world.

77
00:08:30,000 --> 00:08:33,000
Now go to the hardware part.

78
00:08:33,000 --> 00:08:41,000
As you see over here in this case, p 0.0.

79
00:08:41,000 --> 00:08:45,000
This is my port 090, so I just connect it.

80
00:08:48,000 --> 00:08:49,000
With jumper wire.

81
00:08:52,000 --> 00:08:53,000
Okay.

82
00:09:02,000 --> 00:09:03,000
So over here.

83
00:09:03,000 --> 00:09:06,000
This is my line zero.

84
00:09:07,000 --> 00:09:11,000
Now I just need a ground signal also.

85
00:09:31,000 --> 00:09:33,000
So this is my ground signal.

86
00:09:33,000 --> 00:09:36,000
As you see over here, this is my led.

87
00:09:37,000 --> 00:09:38,000
This is my positive leg.

88
00:09:38,000 --> 00:09:40,000
This is my negative leg.

89
00:09:40,000 --> 00:09:41,000
Just.

90
00:09:43,000 --> 00:09:43,000
What?

91
00:09:43,000 --> 00:09:44,000
Over here.

92
00:09:47,000 --> 00:09:49,000
So this is my posting.

93
00:09:52,000 --> 00:09:55,000
And this is my negative.

94
00:10:05,000 --> 00:10:06,000
Okay.

95
00:10:06,000 --> 00:10:09,000
So when you hit on run button.

96
00:10:15,000 --> 00:10:19,000
And signal is high right now.

97
00:10:21,000 --> 00:10:23,000
4090.

98
00:10:58,000 --> 00:11:04,000
So as you see, when it is high, signal goes high.

99
00:11:04,000 --> 00:11:06,000
When it is low, signal goes low.

100
00:11:08,000 --> 00:11:14,000
Okay, So this is how you can generate a digital signal using

101
00:11:17,000 --> 00:11:21,000
any USB 6009 deck card.

102
00:11:24,000 --> 00:11:24,000
Thank you.

103
00:11:49,000 --> 00:11:50,000
In today's lecture.

104
00:11:50,000 --> 00:11:57,000
Today's lecture we just discussed how to acquire digital signal.

105
00:11:58,000 --> 00:12:06,000
As you see over here in my USB 6009 DAC card, we have ground signal.

106
00:12:06,000 --> 00:12:14,000
This is my ground signal and it is present at 32 number pin and we have plus five volt signal also.

107
00:12:15,000 --> 00:12:19,000
So I just use it as a digital hi signal.

108
00:12:20,000 --> 00:12:23,000
I just use it as a digital low signal.

109
00:12:23,000 --> 00:12:34,000
So 31 pin will give me high signal, 32 pin will give me low signal and I am just using port 090.

110
00:12:35,000 --> 00:12:40,000
So now I just go to the software part over here.

111
00:12:40,000 --> 00:12:48,000
Just go to measurement input output and I take Max, lock it.

112
00:12:49,000 --> 00:12:56,000
So over here, first, create channel digital input, select digital input.

113
00:12:56,000 --> 00:13:00,000
Right now I just want to read the signal.

114
00:13:00,000 --> 00:13:04,000
And the signal is my digital single channel.

115
00:13:04,000 --> 00:13:06,000
Single sample line one.

116
00:13:07,000 --> 00:13:12,000
Okay, Start the task, connect task into task out.

117
00:13:17,000 --> 00:13:19,000
Of every block.

118
00:13:19,000 --> 00:13:20,000
Or you can say every node.

119
00:13:21,000 --> 00:13:22,000
Stop the task.

120
00:13:28,000 --> 00:13:30,000
No, over here.

121
00:13:30,000 --> 00:13:31,000
I just use.

122
00:13:34,000 --> 00:13:38,000
Simple error handler if some error is there.

123
00:13:40,000 --> 00:13:44,000
Use while loop for continuous reading.

124
00:13:47,000 --> 00:13:48,000
Create control over here.

125
00:13:51,000 --> 00:13:53,000
Close it over here.

126
00:13:54,000 --> 00:14:00,000
Create constant to select the pin over here.

127
00:14:00,000 --> 00:14:03,000
Device 04090 is selected.

128
00:14:04,000 --> 00:14:16,000
Now you have to just create an indicator in this case because output signal is available outside the

129
00:14:16,000 --> 00:14:16,000
world.

130
00:14:17,000 --> 00:14:18,000
You just read it.

131
00:14:19,000 --> 00:14:22,000
The signal is high or low.

132
00:14:22,000 --> 00:14:25,000
This is my line zero.

133
00:14:26,000 --> 00:14:27,000
Okay.

134
00:14:31,000 --> 00:14:33,000
And this is my stop button.

135
00:14:35,000 --> 00:14:42,000
So now this is my line zero.

136
00:14:43,000 --> 00:14:46,000
I just connect high signal to it.

137
00:14:47,000 --> 00:14:56,000
So when I hit on run button, as you see, Led goes on in the software.

138
00:14:57,000 --> 00:15:07,000
When I remove it and just connect ground pin to it, led goes low again.

139
00:15:07,000 --> 00:15:13,000
When I connect to pin two, it goes high.

140
00:15:13,000 --> 00:15:27,000
Basically, if you are not connecting your port with your or you can say if you open your port after

141
00:15:27,000 --> 00:15:32,000
initializing it, it is in pull up condition.

142
00:15:32,000 --> 00:15:43,000
As you see when I am not connecting any led, it is high when I connect ground pin to it, it goes low.

143
00:15:43,000 --> 00:15:48,000
So it is in pull up condition.

144
00:15:48,000 --> 00:15:48,000
Okay.

145
00:15:48,000 --> 00:15:56,000
So basically for the pull up and pull down conditions, you can check out my other videos or you can

146
00:15:56,000 --> 00:15:59,000
search over Internet also.

147
00:15:59,000 --> 00:16:11,000
Basically, every hardware, like any USB 6009 DAC Card, Arduino, Raspberry Pi, all are initialized

148
00:16:11,000 --> 00:16:13,000
with two conditions.

149
00:16:13,000 --> 00:16:15,000
Pull up condition, pull down condition.

150
00:16:15,000 --> 00:16:18,000
If pull up condition is there.

151
00:16:18,000 --> 00:16:22,000
If you initialized your port and just open it.

152
00:16:22,000 --> 00:16:24,000
No signal is connected with this.

153
00:16:24,000 --> 00:16:29,000
In this case they are in case of pull up.

154
00:16:29,000 --> 00:16:33,000
They are at initially high condition.

155
00:16:33,000 --> 00:16:38,000
If it is pull down condition, in that case it is in low condition.

156
00:16:38,000 --> 00:16:47,000
So or you can say if the port is open, always high signal is there in case of pull up condition and

157
00:16:47,000 --> 00:16:50,000
pull down condition, low signal is there.

158
00:16:50,000 --> 00:17:00,000
Okay so when I connect ground signal goes, signal goes low and when I connect high signal high is there.

159
00:17:00,000 --> 00:17:07,000
So this is how you can read digital signal using any USB 6009 DAC card.

160
00:17:09,000 --> 00:17:09,000
Thank you.

161
00:17:35,000 --> 00:17:35,000
Hello, friends.

162
00:17:36,000 --> 00:17:41,000
In today's lecture, I will show you how to read.

163
00:17:42,000 --> 00:17:44,000
Pistol Non-taster.

164
00:17:45,000 --> 00:17:50,000
How to read Analog signal using any USB 6009 DAC card.

165
00:17:51,000 --> 00:17:58,000
For that purpose, I just create a new video over here.

166
00:17:58,000 --> 00:18:05,000
As you see, this is my V, This is my front panel window.

167
00:18:05,000 --> 00:18:07,000
This is my block diagram window.

168
00:18:07,000 --> 00:18:11,000
I just move it over here.

169
00:18:13,000 --> 00:18:17,000
Because the front block diagram is large.

170
00:18:18,000 --> 00:18:25,000
So for that purpose, just go to measurement input output and Max, lock it over here.

171
00:18:25,000 --> 00:18:27,000
So first create channel.

172
00:18:28,000 --> 00:18:32,000
I want to just read analog input voltage.

173
00:18:32,000 --> 00:18:35,000
Create task over here.

174
00:18:36,000 --> 00:18:43,000
PIN number I Analog input zero is selected on my hardware.

175
00:18:43,000 --> 00:18:45,000
I just select this one.

176
00:18:45,000 --> 00:18:47,000
Start the task.

177
00:18:48,000 --> 00:18:53,000
So connect task into task out error into error out other end.

178
00:18:53,000 --> 00:19:00,000
Stop the task and in between just read analog signal.

179
00:19:01,000 --> 00:19:04,000
So connect it.

180
00:19:07,000 --> 00:19:08,000
Like this.

181
00:19:08,000 --> 00:19:09,000
Go to dialog box.

182
00:19:09,000 --> 00:19:11,000
Simple error handler.

183
00:19:14,000 --> 00:19:20,000
I just make visible labels control you.

184
00:19:24,000 --> 00:19:29,000
No, I want to just read it continuously.

185
00:19:30,000 --> 00:19:33,000
Create control.

186
00:19:33,000 --> 00:19:34,000
Control you.

187
00:19:35,000 --> 00:19:36,000
So now over here.

188
00:19:36,000 --> 00:19:39,000
This is my data available.

189
00:19:39,000 --> 00:19:44,000
So I just use a gauge.

190
00:19:45,000 --> 00:19:54,000
So as you see, the range is five volt because on board I have five volt signal.

191
00:19:55,000 --> 00:19:59,000
So this is my signal over here.

192
00:19:59,000 --> 00:20:02,000
This is my port potentiometer.

193
00:20:03,000 --> 00:20:05,000
I just use.

194
00:20:07,000 --> 00:20:09,000
Connect this.

195
00:20:22,000 --> 00:20:30,000
It increased the size of this connect this control you.

196
00:20:31,000 --> 00:20:33,000
So now the code is ready.

197
00:20:34,000 --> 00:20:38,000
So goes to the hardware part.

198
00:20:38,000 --> 00:20:41,000
As you see over here, this is my potentiometer.

199
00:20:42,000 --> 00:20:43,000
It has three pins.

200
00:20:44,000 --> 00:20:47,000
As you see, these are three pins.

201
00:20:47,000 --> 00:20:50,000
One end is connected to the high voltage.

202
00:20:50,000 --> 00:20:54,000
One is connected to the ground, and the middle one is my wiper.

203
00:20:54,000 --> 00:21:01,000
And it is controlled according to this Rotary Park.

204
00:21:01,000 --> 00:21:03,000
Or you can say Shaft.

205
00:21:03,000 --> 00:21:11,000
So I just connect it to my breadboard over here.

206
00:21:11,000 --> 00:21:13,000
Blue one is my plus five volt.

207
00:21:13,000 --> 00:21:15,000
This is connected to the one end.

208
00:21:16,000 --> 00:21:20,000
And in this side I have analog input signals.

209
00:21:21,000 --> 00:21:23,000
So first one is my ground pin.

210
00:21:24,000 --> 00:21:26,000
Second one is my I zero.

211
00:21:26,000 --> 00:21:34,000
I just connect I zero to my middle one of the potentiometer and I just connect ground to the other end

212
00:21:34,000 --> 00:21:35,000
of the potentiometer.

213
00:21:35,000 --> 00:21:37,000
That is third one left pin.

214
00:21:37,000 --> 00:21:42,000
And I also connect I four because I'm using differential mode.

215
00:21:42,000 --> 00:21:51,000
Okay, so right now over here, these is my ground and orange one is I four and yellow one is my I zero.

216
00:21:51,000 --> 00:21:57,000
So when I hit on run button, as you see over here, there is some voltage.

217
00:21:57,000 --> 00:22:00,000
If you want to check how much is this?

218
00:22:00,000 --> 00:22:02,000
So just visible.

219
00:22:02,000 --> 00:22:04,000
It's digital display.

220
00:22:05,000 --> 00:22:14,000
So I don't run button as you see, when I move it, value goes high.

221
00:22:14,000 --> 00:22:16,000
Right now it is extremely high.

222
00:22:17,000 --> 00:22:18,000
Now it is five volt.

223
00:22:22,000 --> 00:22:25,000
And this is zero.

224
00:22:26,000 --> 00:22:36,000
So this is how you can interface a potentiometer to create analog signals.

225
00:22:36,000 --> 00:22:41,000
Right now, analog signals are read by my DAC card.

226
00:22:42,000 --> 00:22:45,000
In this case, I'm using a single analog signal.

227
00:22:46,000 --> 00:22:58,000
Okay, so this is how you can read an analog signal or how you can interface a potentiometer to your

228
00:22:58,000 --> 00:22:59,000
tech card.

229
00:22:59,000 --> 00:23:00,000
Okay.

230
00:23:00,000 --> 00:23:07,000
In place of that card, if I just remove the DAC card right now, random signal is there.

231
00:23:08,000 --> 00:23:12,000
If you want to check what is goes.

232
00:23:12,000 --> 00:23:17,000
So as you see right now, I just connect positive signal.

233
00:23:17,000 --> 00:23:19,000
So now it is high.

234
00:23:20,000 --> 00:23:24,000
I I'm just connecting A02 plus five volt.

235
00:23:24,000 --> 00:23:26,000
Right now it goes high.

236
00:23:26,000 --> 00:23:38,000
If I just connect because on board I have 2.5 signal also there, as you see over here, this is my

237
00:23:38,000 --> 00:23:39,000
plus 2.5 signal.

238
00:23:40,000 --> 00:23:43,000
It is next to my five volts.

239
00:23:44,000 --> 00:23:45,000
So I just connect it.

240
00:23:50,000 --> 00:23:53,000
And check what goes on.

241
00:23:55,000 --> 00:23:59,000
So I just make it tight.

242
00:24:00,000 --> 00:24:04,000
So now I just remove five.

243
00:24:05,000 --> 00:24:10,000
I just connect plus 2.5 to the I zero.

244
00:24:10,000 --> 00:24:13,000
As you see, plus 2.5V signal is there.

245
00:24:13,000 --> 00:24:21,000
So this is how you can acquire analog signal using an I USB 6009 DAC card.

246
00:24:23,000 --> 00:24:24,000
Thank you.

247
00:24:48,000 --> 00:24:54,000
In this video, you will work out with multiple digital signals.

248
00:24:54,000 --> 00:24:58,000
Right now I just read multiple digital signals.

249
00:24:58,000 --> 00:25:03,000
So over here I have my previous code.

250
00:25:03,000 --> 00:25:10,000
So over here you just select browse multiple lines.

251
00:25:10,000 --> 00:25:14,000
Right now I'm selecting line zero, line one, line two, line three.

252
00:25:14,000 --> 00:25:15,000
Just select it.

253
00:25:15,000 --> 00:25:18,000
As you see it goes from zero colon three.

254
00:25:19,000 --> 00:25:27,000
Now in this case, you just delete this one because right now we have multiple signals.

255
00:25:27,000 --> 00:25:34,000
So over here you just go to digital single channel, single sample, one dimensional lines.

256
00:25:35,000 --> 00:25:35,000
Okay?

257
00:25:35,000 --> 00:25:40,000
So right now just go to index array.

258
00:25:40,000 --> 00:25:42,000
You have to select multiple signals.

259
00:25:42,000 --> 00:25:47,000
So just drag over here is my data.

260
00:25:47,000 --> 00:25:53,000
Or you can say one dimensional data of four signals zero, one, two, three.

261
00:25:53,000 --> 00:25:57,000
And over here you have to select different pins.

262
00:25:57,000 --> 00:26:02,000
So create constant pin zero, create constant pin one.

263
00:26:02,000 --> 00:26:04,000
Create constant pin two.

264
00:26:05,000 --> 00:26:07,000
Create constant pin three.

265
00:26:08,000 --> 00:26:08,000
Okay.

266
00:26:08,000 --> 00:26:13,000
So control you to minimize the space.

267
00:26:13,000 --> 00:26:17,000
So now I just use four Led buttons.

268
00:26:17,000 --> 00:26:25,000
So in the classics I'm just using more attractive Led over here.

269
00:26:26,000 --> 00:26:27,000
This is my Led.

270
00:26:28,000 --> 00:26:31,000
You can also change the color of this one.

271
00:26:31,000 --> 00:26:34,000
So this is my, let's say 0.90.

272
00:26:37,000 --> 00:26:45,000
Then I just check multiple LEDs over here.

273
00:26:46,000 --> 00:26:51,000
So these are my over here.

274
00:26:51,000 --> 00:26:57,000
This is my Led one line, one not led.

275
00:26:58,000 --> 00:27:03,000
This is my line two and this is my line three.

276
00:27:04,000 --> 00:27:09,000
Okay, So if you want to change the color, you just select it.

277
00:27:09,000 --> 00:27:11,000
Go to the properties.

278
00:27:13,000 --> 00:27:17,000
You can change the glowing color of it also.

279
00:27:17,000 --> 00:27:21,000
So right now, the glowing color of this is red.

280
00:27:21,000 --> 00:27:24,000
And press.

281
00:27:24,000 --> 00:27:24,000
Okay.

282
00:27:25,000 --> 00:27:35,000
And again, if you want to change the glowing color of this and also, let's say it will glow with this

283
00:27:35,000 --> 00:27:35,000
color.

284
00:27:36,000 --> 00:27:37,000
Okay.

285
00:27:37,000 --> 00:27:48,000
So now I just put this LEDs inside the loop and I want to connect these LEDs with it's number.

286
00:27:48,000 --> 00:27:51,000
So over here, this is my 010.

287
00:27:52,000 --> 00:27:53,000
So this is my one.

288
00:27:55,000 --> 00:27:59,000
This is my space is very less over here.

289
00:28:00,000 --> 00:28:08,000
So this is my line three and this is my line to control you.

290
00:28:10,000 --> 00:28:14,000
So this is my code for multiple signals.

291
00:28:15,000 --> 00:28:17,000
Now go to the hardware part.

292
00:28:17,000 --> 00:28:21,000
So over here, Port zero is connected.

293
00:28:21,000 --> 00:28:25,000
Port three is connected, not port.

294
00:28:25,000 --> 00:28:27,000
Line three is connected.

295
00:28:27,000 --> 00:28:30,000
So I just connect line two.

296
00:28:32,000 --> 00:28:35,000
So now line two is also connected.

297
00:28:36,000 --> 00:28:39,000
I just go with line one.

298
00:28:41,000 --> 00:28:43,000
So now line one is also connected.

299
00:28:43,000 --> 00:28:48,000
So over here, these are my different signals.

300
00:28:48,000 --> 00:28:49,000
So this is my line.

301
00:28:49,000 --> 00:28:52,000
Zero line one, line two, line three.

302
00:28:52,000 --> 00:28:54,000
And this is my high signal.

303
00:28:54,000 --> 00:28:55,000
This is my low signal.

304
00:28:55,000 --> 00:29:02,000
So let's say initially I just make all the LEDs low.

305
00:29:06,000 --> 00:29:11,000
Or you can say, I want to just read Low Signal initially.

306
00:29:11,000 --> 00:29:15,000
So I just connect low with all the LEDs.

307
00:29:15,000 --> 00:29:25,000
So when I hit on run button, all the LEDs are initially in low state if you want to make it high.

308
00:29:25,000 --> 00:29:34,000
So right now I just remove port zero and connect it to my high signal.

309
00:29:34,000 --> 00:29:36,000
As you see, line zero goes high.

310
00:29:36,000 --> 00:29:43,000
Now line one, it is high, line two, it is high.

311
00:29:43,000 --> 00:29:46,000
And now line four again.

312
00:29:46,000 --> 00:29:47,000
It is also high.

313
00:29:47,000 --> 00:29:55,000
If you change again now connect to ground if you want to change this one also.

314
00:29:56,000 --> 00:30:02,000
So this is how you can generate different signals over your

315
00:30:05,000 --> 00:30:13,000
USB 6009 because now all the LEDs are in low.

316
00:30:13,000 --> 00:30:23,000
This indicates that the signal at the output port is low when it is high or when signal is high at the

317
00:30:23,000 --> 00:30:27,000
output port, it will read the signal and LEDs goes high.

318
00:30:27,000 --> 00:30:36,000
So this is how you can read multiple digital signals using any USB 6009 DAC card.

319
00:30:38,000 --> 00:30:38,000
Thank you.

320
00:31:08,000 --> 00:31:09,000
Today.

321
00:31:09,000 --> 00:31:18,000
I will tell you how to read multiple analog signals using an USB DAC card for that purpose.

322
00:31:18,000 --> 00:31:22,000
I just use multiple signals, as you see over here.

323
00:31:22,000 --> 00:31:34,000
White one is my 2.5V and blue one is my five volt over here on this part, as you see, I have analog

324
00:31:34,000 --> 00:31:38,000
eight analog pins from I zero to I seven.

325
00:31:39,000 --> 00:31:41,000
I stands for analog input.

326
00:31:41,000 --> 00:31:43,000
I, I am just using a zero.

327
00:31:43,000 --> 00:31:47,000
I am using differential mode over here.

328
00:31:47,000 --> 00:31:50,000
So I just this one ground.

329
00:31:51,000 --> 00:31:58,000
So I just make it ground connect to the breadboard orange one is my I four.

330
00:31:59,000 --> 00:32:08,000
So in the case of differential mode, you have to just ground it and yellow one is my I signal I zero

331
00:32:08,000 --> 00:32:13,000
signal and red one is my I one signal.

332
00:32:14,000 --> 00:32:14,000
Okay.

333
00:32:14,000 --> 00:32:23,000
And this is my I5I just ground it and this is my ground.

334
00:32:24,000 --> 00:32:28,000
So it will read different signals.

335
00:32:28,000 --> 00:32:33,000
So right now I just connect Blue one to my eye zero.

336
00:32:33,000 --> 00:32:38,000
It will show five volt and red one is my air one.

337
00:32:38,000 --> 00:32:40,000
It will show 2.5V.

338
00:32:40,000 --> 00:32:42,000
So now go to the software part.

339
00:32:42,000 --> 00:32:48,000
So over here in this case, I just use previous code.

340
00:32:48,000 --> 00:32:51,000
So over here, just go to the browse.

341
00:32:51,000 --> 00:32:53,000
Select multiple signal.

342
00:32:53,000 --> 00:33:02,000
Right now I zero and I one is selected because on the hardware part, I did that configuration.

343
00:33:03,000 --> 00:33:12,000
So over here, analog single channel in place of single channel, I just use multiple channel single

344
00:33:12,000 --> 00:33:12,000
sample.

345
00:33:15,000 --> 00:33:26,000
So over here I just use to post these reports just visible.

346
00:33:26,000 --> 00:33:30,000
It's digital display again, visible.

347
00:33:30,000 --> 00:33:32,000
It's this digital display.

348
00:33:33,000 --> 00:33:40,000
So over here I have one dimensional array data, so I just use index array.

349
00:33:42,000 --> 00:33:45,000
Connect it over here.

350
00:33:45,000 --> 00:33:46,000
Just put.

351
00:33:48,000 --> 00:33:50,000
You have to separate these two signals.

352
00:33:53,000 --> 00:33:54,000
So just connect it.

353
00:33:55,000 --> 00:33:57,000
Control you will minimize.

354
00:33:57,000 --> 00:33:59,000
So as you see, this is my index array.

355
00:34:00,000 --> 00:34:01,000
Here is my port.

356
00:34:01,000 --> 00:34:03,000
Here is my port two.

357
00:34:03,000 --> 00:34:06,000
So when I hit on run button, I got two values.

358
00:34:06,000 --> 00:34:08,000
One is five volt.

359
00:34:08,000 --> 00:34:10,000
Another one is 2.5.

360
00:34:10,000 --> 00:34:12,000
If I just replace it.

361
00:34:12,000 --> 00:34:19,000
So I just connect five volt to the another one.

362
00:34:19,000 --> 00:34:25,000
So now you just check different voltage over here.

363
00:34:25,000 --> 00:34:34,000
So in one potentiometer or you can say one port will show five volt if you connect both with the five

364
00:34:34,000 --> 00:34:37,000
volt or 2.5.

365
00:34:37,000 --> 00:34:40,000
Right now it is connected 2.5.

366
00:34:41,000 --> 00:34:47,000
And if you connect both these with five volt, it will show five volt.

367
00:34:47,000 --> 00:34:53,000
So this is how you can read multiple analog signals using any USB DAC card.

368
00:34:54,000 --> 00:34:54,000
Thank you.

369
00:35:19,000 --> 00:35:31,000
In this lecture, I will tell you how to generate multiple digital signals using an I USB 6009 DAC card.

370
00:35:31,000 --> 00:35:39,000
For that purpose, I just use already built code that I use in previous video.

371
00:35:39,000 --> 00:35:45,000
So over here you just drag it and browse it.

372
00:35:46,000 --> 00:35:48,000
You just select the PIN numbers.

373
00:35:48,000 --> 00:35:50,000
Right now I just use PIN number zero.

374
00:35:50,000 --> 00:35:52,000
PIN number two and pin number

375
00:35:53,000 --> 00:35:59,000
1409040914092.

376
00:35:59,000 --> 00:36:06,000
Just okay, as you see, it is right now, zero Colon two.

377
00:36:08,000 --> 00:36:11,000
The operation is for digital output.

378
00:36:11,000 --> 00:36:20,000
Over here you have to just single channel, single sample, one dimensional lines.

379
00:36:21,000 --> 00:36:25,000
Okay, so just delete this switch.

380
00:36:25,000 --> 00:36:27,000
Delete this one.

381
00:36:27,000 --> 00:36:28,000
Also control V.

382
00:36:29,000 --> 00:36:40,000
Now I just place three push buttons over here, so it is line zero.

383
00:36:46,000 --> 00:36:53,000
This is my line one and this is my line two.

384
00:36:54,000 --> 00:37:00,000
Okay, so now these are my three inputs.

385
00:37:01,000 --> 00:37:04,000
Now I just want to.

386
00:37:09,000 --> 00:37:15,000
Use these inside my while loop.

387
00:37:15,000 --> 00:37:19,000
So I just increase the size of my while loop.

388
00:37:28,000 --> 00:37:35,000
So I just use build array function to add these three signals.

389
00:37:45,000 --> 00:37:48,000
This is my line to control.

390
00:37:48,000 --> 00:37:51,000
Line two is connected over here.

391
00:37:51,000 --> 00:37:52,000
And this line.

392
00:37:53,000 --> 00:37:56,000
Okay, Now you have to just connect it.

393
00:37:58,000 --> 00:38:00,000
So the program is ready.

394
00:38:00,000 --> 00:38:02,000
This function is built.

395
00:38:02,000 --> 00:38:07,000
So I also make it label enabled.

396
00:38:07,000 --> 00:38:09,000
So that's why.

397
00:38:11,000 --> 00:38:21,000
So that you can check out every component control you.

398
00:38:24,000 --> 00:38:26,000
I just minimize the space of this part

399
00:38:29,000 --> 00:38:33,000
so that it is clearly visible to you.

400
00:38:36,000 --> 00:38:41,000
So now, as you see, this is my simple error handler.

401
00:38:41,000 --> 00:38:43,000
Def max, stop task.

402
00:38:44,000 --> 00:38:47,000
This is my three inputs.

403
00:38:47,000 --> 00:38:49,000
Now go to the hardware.

404
00:38:50,000 --> 00:38:51,000
As you see over here.

405
00:38:51,000 --> 00:38:54,000
This is my USB DAC card.

406
00:38:54,000 --> 00:38:56,000
This is my PIN number.

407
00:38:58,000 --> 00:39:03,000
Port 090 port 140, line 140.

408
00:39:03,000 --> 00:39:04,000
Line two.

409
00:39:04,000 --> 00:39:07,000
These three, my signals.

410
00:39:07,000 --> 00:39:09,000
And this is my ground signal.

411
00:39:10,000 --> 00:39:13,000
So over here, I just connected three LEDs.

412
00:39:14,000 --> 00:39:24,000
You can use resistor in between the between the signal and the positive pin of a Led so that it will

413
00:39:24,000 --> 00:39:25,000
not burn out.

414
00:39:25,000 --> 00:39:32,000
Right now I'm not connecting any resistance, so just hit on run button.

415
00:39:33,000 --> 00:39:38,000
As you see all the LEDs goes low.

416
00:39:38,000 --> 00:39:41,000
So right now I'm clicking on line zero.

417
00:39:42,000 --> 00:39:43,000
Led goes high.

418
00:39:44,000 --> 00:39:46,000
Line one Led goes high.

419
00:39:47,000 --> 00:39:50,000
Line two leading goes high.

420
00:39:50,000 --> 00:39:54,000
So all the LEDs are high in this case.

421
00:39:54,000 --> 00:39:58,000
If you want to close the line one, just click on it.

422
00:39:59,000 --> 00:40:01,000
Right now, only two LEDs goes high.

423
00:40:01,000 --> 00:40:09,000
If you want to turn on only led connected with the line two.

424
00:40:09,000 --> 00:40:12,000
So click over here right now.

425
00:40:12,000 --> 00:40:16,000
Only led connected to the line two is high.

426
00:40:16,000 --> 00:40:27,000
So this is how you can generate multiple digital signals using any USB 6009 DAC.

427
00:40:28,000 --> 00:40:29,000
Thank you.

428
00:40:54,000 --> 00:40:55,000
Hello, friends.

429
00:40:55,000 --> 00:41:01,000
In today's video I will tell you how to interface IR sensor.

430
00:41:01,000 --> 00:41:10,000
IR stands for infrared sensor for creating signal or for acquiring signal.

431
00:41:10,000 --> 00:41:17,000
So we will use IR sensor in different applications like object detection.

432
00:41:17,000 --> 00:41:21,000
As you see here, this is my infrared sensor.

433
00:41:21,000 --> 00:41:23,000
It is a module.

434
00:41:23,000 --> 00:41:28,000
So over here, this is my transmitter and the black one is my receiver.

435
00:41:28,000 --> 00:41:33,000
So in this module we have three pins.

436
00:41:33,000 --> 00:41:37,000
First one is VCC, second one is ground, and third one is output.

437
00:41:37,000 --> 00:41:45,000
You can acquire signal using this IR sensor in two modes analog mode or digital mode.

438
00:41:46,000 --> 00:41:50,000
So right now I'm just using digital mode.

439
00:41:50,000 --> 00:41:57,000
So for that purpose I just use digital pin of port 090.

440
00:41:57,000 --> 00:42:02,000
I just connect it now I just connect the ground.

441
00:42:02,000 --> 00:42:06,000
That is my middle one now I just connect the.

442
00:42:08,000 --> 00:42:11,000
So as you see over here.

443
00:42:12,000 --> 00:42:21,000
So this is my air sensor, so I have to adjust its setting.

444
00:42:24,000 --> 00:42:30,000
When object is there in front of this, it will detect it.

445
00:42:30,000 --> 00:42:34,000
And it shows why this.

446
00:42:35,000 --> 00:42:39,000
As you see right now, my hand is there and it goes high.

447
00:42:40,000 --> 00:42:44,000
Right now I remove my hand when it goes low.

448
00:42:44,000 --> 00:42:46,000
So it will generate signal.

449
00:42:47,000 --> 00:42:49,000
So now go to the software part.

450
00:42:49,000 --> 00:42:55,000
Over here I just use single signal read code.

451
00:42:55,000 --> 00:42:59,000
As you see over here, I just select line zero.

452
00:43:00,000 --> 00:43:03,000
This is my create virtual channel.

453
00:43:03,000 --> 00:43:10,000
And over here I just select digital input, start the task, read the task because this sensor will

454
00:43:10,000 --> 00:43:11,000
generate a signal.

455
00:43:12,000 --> 00:43:16,000
And right now I'm just assuming that it is a digital signal.

456
00:43:17,000 --> 00:43:27,000
So I just use single channel, single sample, one line and one Led is connected to it that is known

457
00:43:27,000 --> 00:43:28,000
as sensor.

458
00:43:28,000 --> 00:43:32,000
This is my stop the task and it is my error handler.

459
00:43:32,000 --> 00:43:34,000
So when I hit on run button.

460
00:43:34,000 --> 00:43:44,000
So now LEDs on the IR sensor is also low condition and in my software it is also in low condition.

461
00:43:44,000 --> 00:43:51,000
When I put my hand, it goes red and in my software also it goes high.

462
00:43:51,000 --> 00:43:56,000
So this is how you can acquire signal using IR sensor.

463
00:43:56,000 --> 00:43:58,000
Right now object is detected.

464
00:43:58,000 --> 00:44:03,000
You can use this IR sensor in different applications.

465
00:44:03,000 --> 00:44:12,000
Object detection or door locking, unlocking, checking you can use person's existence.

466
00:44:13,000 --> 00:44:18,000
Okay, so as you see over here, it will acquire signal.

467
00:44:19,000 --> 00:44:24,000
You can adjust its range from this potentiometer over here.

468
00:44:24,000 --> 00:44:26,000
This is rotating potentiometer.

469
00:44:26,000 --> 00:44:32,000
So I just using this, you can increase or decrease this.

470
00:44:32,000 --> 00:44:36,000
The you can increase or decrease the range.

471
00:44:36,000 --> 00:44:42,000
The range of this sensor is low, as you see right now.

472
00:44:43,000 --> 00:44:49,000
If you want to go for higher range, you can just use ultrasonic sensor or laser sensor.

473
00:44:49,000 --> 00:44:57,000
So this is how you can interface IR sensor using an USB 6009.

474
00:44:57,000 --> 00:44:59,000
So this is all for today.

475
00:44:59,000 --> 00:45:00,000
Thank you.

476
00:45:24,000 --> 00:45:25,000
Hello friends.

477
00:45:25,000 --> 00:45:34,000
Today I will tell you how to interface a sound sensor using an a USB DAC card.

478
00:45:34,000 --> 00:45:43,000
So for that purpose it will detect just some sound is available or not.

479
00:45:44,000 --> 00:45:51,000
So as you see over here, this is my sound sensor and this is a module over here.

480
00:45:51,000 --> 00:45:59,000
This is my right one is my pin, middle one is my ground and left one is my VCC.

481
00:45:59,000 --> 00:46:01,000
So I just connect.

482
00:46:01,000 --> 00:46:03,000
So left one is my VCC.

483
00:46:03,000 --> 00:46:06,000
I'll just connect it to VCC then.

484
00:46:06,000 --> 00:46:07,000
Ground pin.

485
00:46:09,000 --> 00:46:11,000
And now over here.

486
00:46:11,000 --> 00:46:12,000
This is my signal.

487
00:46:14,000 --> 00:46:18,000
So right now it is placed over here.

488
00:46:18,000 --> 00:46:23,000
So right now it will detect sound.

489
00:46:23,000 --> 00:46:30,000
You can adjust the sound level if you Now just go to the software part.

490
00:46:30,000 --> 00:46:37,000
Over here, I just create a single channel read signal.

491
00:46:38,000 --> 00:46:41,000
As you see, device 14090 is selected.

492
00:46:42,000 --> 00:46:45,000
Create task digital input.

493
00:46:45,000 --> 00:46:48,000
It will detect the signal based on signal.

494
00:46:48,000 --> 00:46:49,000
Start the task.

495
00:46:49,000 --> 00:46:53,000
This will read sound sensor is connected.

496
00:46:53,000 --> 00:46:55,000
Sound is present or not.

497
00:46:55,000 --> 00:47:01,000
As you see, it is high in this case because it is detecting the sound.

498
00:47:02,000 --> 00:47:05,000
So now over here, please stop the task.

499
00:47:19,000 --> 00:47:19,000
Just.

500
00:47:19,000 --> 00:47:21,000
I'm just checking the signals.

501
00:47:23,000 --> 00:47:24,000
This is my out signal.

502
00:47:26,000 --> 00:47:28,000
So I just adjust.

503
00:47:28,000 --> 00:47:29,000
It's.

504
00:47:31,000 --> 00:47:32,000
Range.

505
00:47:35,000 --> 00:47:37,000
Using this potentiometer.

506
00:47:45,000 --> 00:47:46,000
Hello?

507
00:47:46,000 --> 00:47:47,000
Hello?

508
00:47:48,000 --> 00:47:48,000
Hello.

509
00:47:48,000 --> 00:47:49,000
Hello.

510
00:47:49,000 --> 00:47:51,000
Now it is generating signal.

511
00:47:51,000 --> 00:47:52,000
Hello?

512
00:47:52,000 --> 00:47:53,000
Hello?

513
00:47:53,000 --> 00:47:53,000
Hello.

514
00:47:54,000 --> 00:47:57,000
As you see, it goes high in this case.

515
00:47:58,000 --> 00:48:01,000
So right now just run the code.

516
00:48:06,000 --> 00:48:06,000
Hello.

517
00:48:07,000 --> 00:48:07,000
Hello?

518
00:48:08,000 --> 00:48:08,000
Hello?

519
00:48:16,000 --> 00:48:18,000
So signal is generated.

520
00:48:19,000 --> 00:48:21,000
I just change.

521
00:48:22,000 --> 00:48:23,000
So right now.

522
00:48:24,000 --> 00:48:25,000
Hello.

523
00:48:25,000 --> 00:48:26,000
Hello?

524
00:48:26,000 --> 00:48:27,000
Hello.

525
00:48:27,000 --> 00:48:28,000
It is changing.

526
00:48:28,000 --> 00:48:28,000
Hello.

527
00:48:28,000 --> 00:48:29,000
Hello?

528
00:48:29,000 --> 00:48:30,000
Hello.

529
00:48:30,000 --> 00:48:33,000
So you have to just adjust the settings.

530
00:48:33,000 --> 00:48:35,000
In this case, as you see.

531
00:48:36,000 --> 00:48:39,000
So I just change it.

532
00:48:41,000 --> 00:48:42,000
Hello?

533
00:48:42,000 --> 00:48:43,000
Hello?

534
00:48:43,000 --> 00:48:43,000
Hello?

535
00:48:43,000 --> 00:48:44,000
Hello?

536
00:48:44,000 --> 00:48:44,000
Hello?

537
00:48:52,000 --> 00:48:54,000
So it is in all condition.

538
00:48:55,000 --> 00:48:59,000
Now, as you see, when I goes, my voice goes high.

539
00:48:59,000 --> 00:49:01,000
It will detect the signal.

540
00:49:01,000 --> 00:49:06,000
So this is how you can use sound sensor.

541
00:49:06,000 --> 00:49:17,000
So if you want to check out more in this case, I just make some delay inside this because it is detecting

542
00:49:17,000 --> 00:49:18,000
in milliseconds.

543
00:49:18,000 --> 00:49:25,000
So I just put some 300 milliseconds delay inside this.

544
00:49:25,000 --> 00:49:33,000
So when I hit on run button, as you see now, it is detecting my sound, as you see over here.

545
00:49:35,000 --> 00:49:44,000
So you can put some pressure over here because using pressure, it is detecting the sound and it is

546
00:49:44,000 --> 00:49:48,000
detecting after 300 milliseconds.

547
00:49:48,000 --> 00:49:49,000
Okay.

548
00:49:49,000 --> 00:49:57,000
So this is how you can interface sound sensor using any USB 6009.

549
00:50:02,000 --> 00:50:07,000
As you see, there is a delay of 300 milliseconds in this case.

550
00:50:08,000 --> 00:50:10,000
So this is all about today's lecture.

551
00:50:10,000 --> 00:50:11,000
Thank you.

552
00:50:36,000 --> 00:50:37,000
Hello, friends.

553
00:50:37,000 --> 00:50:50,000
Today I will tell you how to interface a capacitive touch sensor to generate digital signal using an

554
00:50:50,000 --> 00:50:53,000
I USB 6009 DAC card.

555
00:50:53,000 --> 00:51:00,000
So over here, this is my sensor in this this pin left side.

556
00:51:00,000 --> 00:51:02,000
On the right side it is ground.

557
00:51:02,000 --> 00:51:10,000
Middle one is VCC and the right left side it is signal.

558
00:51:10,000 --> 00:51:12,000
So I just connect.

559
00:51:12,000 --> 00:51:14,000
This is my port zero pin.

560
00:51:15,000 --> 00:51:18,000
I just connect it to the signal.

561
00:51:19,000 --> 00:51:25,000
This is black one is my ground, so I just connect it to the ground pin.

562
00:51:26,000 --> 00:51:28,000
So now I just connect.

563
00:51:28,000 --> 00:51:34,000
VCC So this is my middle one is my VCC.

564
00:51:34,000 --> 00:51:38,000
So now it power up the sensor.

565
00:51:39,000 --> 00:51:49,000
So over here, this is my code that is used for single signal read.

566
00:51:49,000 --> 00:51:52,000
So now I am just using port zero.

567
00:51:52,000 --> 00:51:54,000
This is my channel.

568
00:51:54,000 --> 00:51:58,000
Digital input is selected to digital input.

569
00:51:58,000 --> 00:52:02,000
Start the task, read the task as you see over here.

570
00:52:02,000 --> 00:52:05,000
This is my Led for line zero.

571
00:52:05,000 --> 00:52:09,000
This is my stop the task simple error handler.

572
00:52:09,000 --> 00:52:13,000
So when I hit on run button it is in off condition.

573
00:52:13,000 --> 00:52:19,000
So when you touch the sensor, as you see line goes high, line zero goes high.

574
00:52:20,000 --> 00:52:23,000
When I remove my finger, it goes low.

575
00:52:23,000 --> 00:52:31,000
So this is how you can read digital signal from capacitive touch sensor.

576
00:52:31,000 --> 00:52:33,000
So as you see.

577
00:52:34,000 --> 00:52:43,000
So this is how we can acquire digital signal using touch sensor or how you can interface touch sensor

578
00:52:43,000 --> 00:52:48,000
using any USB 6009 card.

579
00:52:49,000 --> 00:52:51,000
So this is all for today.

580
00:52:51,000 --> 00:52:52,000
Thank you.

581
00:53:17,000 --> 00:53:27,000
In the previous video, we just generate three multiple digital signals using USB three 6009 card.

582
00:53:27,000 --> 00:53:36,000
In this video I just make a modification and through this we just create a running light.

583
00:53:37,000 --> 00:53:40,000
So for that purpose, I just use a delay.

584
00:53:40,000 --> 00:53:42,000
This is my time delay.

585
00:53:43,000 --> 00:53:45,000
I just make it visible.

586
00:53:45,000 --> 00:53:46,000
Label.

587
00:53:47,000 --> 00:53:49,000
Wait 100 milliseconds.

588
00:53:50,000 --> 00:53:50,000
Okay.

589
00:53:50,000 --> 00:53:51,000
Over here.

590
00:53:51,000 --> 00:53:54,000
This is my index array.

591
00:53:55,000 --> 00:54:02,000
So I just make it visible label and this is my build array function.

592
00:54:04,000 --> 00:54:08,000
So control u to minimize the space.

593
00:54:08,000 --> 00:54:10,000
So over here, this is my.

594
00:54:13,000 --> 00:54:14,000
Input.

595
00:54:14,000 --> 00:54:19,000
Right now, three inputs are selected line 012.

596
00:54:19,000 --> 00:54:22,000
As you see, zero two, colon two.

597
00:54:22,000 --> 00:54:27,000
Okay, now you have this output.

598
00:54:27,000 --> 00:54:34,000
So the task then over here, I just use an array.

599
00:54:35,000 --> 00:54:37,000
So how you create an array.

600
00:54:37,000 --> 00:54:39,000
So just go over here.

601
00:54:39,000 --> 00:54:40,000
This is my array.

602
00:54:41,000 --> 00:54:44,000
And inside this, you just put push button.

603
00:54:44,000 --> 00:54:47,000
So this is my one dimensional array.

604
00:54:47,000 --> 00:54:50,000
You just make it constant.

605
00:54:51,000 --> 00:54:55,000
And right now, I just use three inputs.

606
00:54:55,000 --> 00:54:58,000
So that's why I select three input over here.

607
00:54:58,000 --> 00:55:01,000
So I just delete this over here.

608
00:55:01,000 --> 00:55:03,000
You just add shift registers.

609
00:55:03,000 --> 00:55:12,000
So just click over here, add shift registers as you see, shift registers are initialized.

610
00:55:12,000 --> 00:55:17,000
Now to initialized created, you have to just initialize it.

611
00:55:17,000 --> 00:55:20,000
So I just remove it.

612
00:55:20,000 --> 00:55:24,000
I just connect this array to my simulator.

613
00:55:24,000 --> 00:55:29,000
Right now, this wire will contain three signals.

614
00:55:30,000 --> 00:55:30,000
Okay.

615
00:55:30,000 --> 00:55:32,000
So I have to split it.

616
00:55:32,000 --> 00:55:36,000
So this is my index array line 012.

617
00:55:36,000 --> 00:55:39,000
Or you can say indexing zero, indexing one, indexing two over here.

618
00:55:39,000 --> 00:55:41,000
These are my three signals.

619
00:55:41,000 --> 00:55:47,000
I just build array for this and connect to my right task.

620
00:55:47,000 --> 00:55:48,000
Okay.

621
00:55:48,000 --> 00:55:51,000
And over here I just use a negate function.

622
00:55:51,000 --> 00:55:55,000
So if the previous value is true, false.

623
00:55:55,000 --> 00:55:55,000
True.

624
00:55:55,000 --> 00:56:01,000
Now, after one loop, the value over here is false.

625
00:56:01,000 --> 00:56:01,000
True.

626
00:56:01,000 --> 00:56:01,000
True.

627
00:56:01,000 --> 00:56:06,000
So right like this way it goes on and on.

628
00:56:06,000 --> 00:56:08,000
So when you hit on run button.

629
00:56:09,000 --> 00:56:17,000
So as you see in the hardware part, hardware is same because line zero is connected to this pin line

630
00:56:17,000 --> 00:56:22,000
one is connected to this pin or this, and line two is connected to this.

631
00:56:23,000 --> 00:56:29,000
So it will go high, low, high, low and you can check it.

632
00:56:30,000 --> 00:56:38,000
So if you want to control the speed, so I'll just stop the task and make it control, create control

633
00:56:39,000 --> 00:56:42,000
and just connect it.

634
00:56:45,000 --> 00:56:46,000
Wait three seconds.

635
00:56:46,000 --> 00:56:48,000
I want to control the speed.

636
00:56:50,000 --> 00:56:53,000
So then I hit on run, as you see.

637
00:56:53,000 --> 00:57:00,000
So if I put 200 over here, so the running speed is slow.

638
00:57:00,000 --> 00:57:13,000
If I put 300 over here now you can check speed and if I put 50 over here, you can check the running

639
00:57:13,000 --> 00:57:15,000
speed of these LEDs.

640
00:57:15,000 --> 00:57:27,000
So this way, in this way you can generate running Led light using any USB 6009 DAC card, or you can

641
00:57:27,000 --> 00:57:35,000
create multiple digital signals using any USB 6009 DAC card.

642
00:57:35,000 --> 00:57:38,000
So this is all for today's lecture.

643
00:57:38,000 --> 00:57:39,000
Thank you.

