1
00:00:05,000 --> 00:00:11,000
Today we discuss about national instruments and I Mario over here.

2
00:00:11,000 --> 00:00:24,000
As you see, this is my Mario Kart and it is namely Mario 1900.

3
00:00:25,000 --> 00:00:25,000
Okay.

4
00:00:25,000 --> 00:00:29,000
It has the capabilities like accelerometer.

5
00:00:31,000 --> 00:00:37,000
Already installed in these boat over here, you got four LEDs.

6
00:00:38,000 --> 00:00:40,000
It will show you the status.

7
00:00:40,000 --> 00:00:43,000
It will show you the power over here.

8
00:00:43,000 --> 00:00:45,000
This is the power cord.

9
00:00:46,000 --> 00:00:50,000
You just need to connect your power supply over here.

10
00:00:50,000 --> 00:00:52,000
This is for connection.

11
00:00:54,000 --> 00:00:57,000
And over here we have the reset button.

12
00:00:57,000 --> 00:00:59,000
And on this side we have two button.

13
00:00:59,000 --> 00:01:06,000
One is for Wi-Fi connection, another one is for button on and off.

14
00:01:06,000 --> 00:01:14,000
And over here, as you see, there are two ports, Port A and Port B, And on this side, we have Port

15
00:01:14,000 --> 00:01:24,000
C On these ports, we have five volt power supply, analog input, analog output, digital input, digital

16
00:01:24,000 --> 00:01:32,000
output pins, as well as and counter pins available on this D1 card.

17
00:01:32,000 --> 00:01:32,000
Okay.

18
00:01:32,000 --> 00:01:41,000
So on this side, as you see over here, we have plus 15 -15 voltage available analog output, analog

19
00:01:41,000 --> 00:01:45,000
input, digital inputs are available.

20
00:01:45,000 --> 00:01:56,000
So right now for this board to program, we need an mireo toolkit, as you see in the.

21
00:01:57,000 --> 00:02:02,000
Desktop LabVIEW 2021 version is available.

22
00:02:02,000 --> 00:02:05,000
Earlier it is available in 2019.

23
00:02:05,000 --> 00:02:09,000
Right now it is upgraded to 2021in the 2023.

24
00:02:09,000 --> 00:02:12,000
It is not available till now.

25
00:02:12,000 --> 00:02:13,000
Okay.

26
00:02:13,000 --> 00:02:21,000
So for that purpose, if you want to program this, Mario, you just need to power.

27
00:02:23,000 --> 00:02:27,000
It requires external power as I just connect it.

28
00:02:27,000 --> 00:02:33,000
Or here you just check power button on and it will show the status.

29
00:02:33,000 --> 00:02:35,000
Now I just connect.

30
00:02:37,000 --> 00:02:38,000
The connector.

31
00:02:38,000 --> 00:02:42,000
It is connected using USB to my.

32
00:02:43,000 --> 00:02:52,000
Device if you want to check the device when you just first time if the older drivers are properly installed.

33
00:02:52,000 --> 00:02:54,000
In that case, you just need to.

34
00:02:57,000 --> 00:03:00,000
Go over here and micro USB monitor.

35
00:03:00,000 --> 00:03:04,000
It automatically opens if it is not open.

36
00:03:05,000 --> 00:03:09,000
In that case, you just go to Macs and Macs.

37
00:03:10,000 --> 00:03:14,000
Over here you can find out the device.

38
00:03:15,000 --> 00:03:17,000
I just first minimize this.

39
00:03:17,000 --> 00:03:18,000
And Mario.

40
00:03:20,000 --> 00:03:21,000
Monitor.

41
00:03:22,000 --> 00:03:24,000
It is basically the part of an AI launcher.

42
00:03:26,000 --> 00:03:28,000
So animax.

43
00:03:29,000 --> 00:03:31,000
It will take some time.

44
00:03:31,000 --> 00:03:34,000
Till now I just show you.

45
00:03:35,000 --> 00:03:42,000
Right now, it is open in the device in the Max Measurement and Automation Explorer.

46
00:03:42,000 --> 00:03:47,000
We just find out complete detail of your system and your hardware.

47
00:03:47,000 --> 00:03:48,000
Okay.

48
00:03:48,000 --> 00:03:50,000
As you see over here, I.

49
00:03:50,000 --> 00:03:52,000
This is my.

50
00:03:54,000 --> 00:03:55,000
System Details.

51
00:03:55,000 --> 00:03:57,000
Physical memory 7.94.

52
00:03:58,000 --> 00:04:00,000
And over here, this is the disk capacity.

53
00:04:01,000 --> 00:04:08,000
Okay, so in the device over here, you can find out the device.

54
00:04:08,000 --> 00:04:11,000
And here you it is present.

55
00:04:11,000 --> 00:04:14,000
Okay, So you just check over here.

56
00:04:14,000 --> 00:04:18,000
This is the serial number for right now.

57
00:04:18,000 --> 00:04:23,000
Just minimize this and go to the over here, launch the getting started.

58
00:04:24,000 --> 00:04:27,000
If you just click over here, let's check what happened.

59
00:04:36,000 --> 00:04:40,000
Getting started with Mario in this case.

60
00:04:40,000 --> 00:04:41,000
You need to.

61
00:04:43,000 --> 00:04:47,000
Program your miryo using project.

62
00:04:47,000 --> 00:04:50,000
In this case, you need to create project as you see over here.

63
00:04:50,000 --> 00:04:52,000
This is my miryo.

64
00:04:54,000 --> 00:04:54,000
Over here.

65
00:04:54,000 --> 00:04:57,000
The same serial number is available over here.

66
00:04:57,000 --> 00:05:03,000
Now checking the software on the Mario, It is updated or not.

67
00:05:04,000 --> 00:05:06,000
I already update this.

68
00:05:06,000 --> 00:05:07,000
Let's check.

69
00:05:07,000 --> 00:05:10,000
Is there any update available on.

70
00:05:15,000 --> 00:05:17,000
Right now, as you see.

71
00:05:17,000 --> 00:05:18,000
From here.

72
00:05:19,000 --> 00:05:24,000
In the first case, you can control using like over here.

73
00:05:24,000 --> 00:05:24,000
I'm just.

74
00:05:25,000 --> 00:05:29,000
Turn off all the four LEDs that are my on board right now.

75
00:05:30,000 --> 00:05:32,000
Zero Led one, two, three.

76
00:05:32,000 --> 00:05:36,000
Right now, just I want to turn on only LEDs.

77
00:05:36,000 --> 00:05:36,000
Zero.

78
00:05:37,000 --> 00:05:37,000
As you see.

79
00:05:38,000 --> 00:05:39,000
Okay.

80
00:05:39,000 --> 00:05:44,000
And over here it is showing me the x axis, y axis and Z axis.

81
00:05:45,000 --> 00:05:47,000
And over here, this is the button position.

82
00:05:47,000 --> 00:05:50,000
Let's say I'm just pushing the button.

83
00:05:51,000 --> 00:05:52,000
It is green.

84
00:05:54,000 --> 00:05:54,000
Off.

85
00:05:54,000 --> 00:05:56,000
On, off on.

86
00:05:57,000 --> 00:06:00,000
I'm just controlling this button from here only.

87
00:06:00,000 --> 00:06:07,000
And if you want to just check the x axis y axis Z axis, I just move it as you see.

88
00:06:09,000 --> 00:06:13,000
All the X's are changing right now.

89
00:06:13,000 --> 00:06:17,000
And when I just make it steady right now it is constant.

90
00:06:17,000 --> 00:06:22,000
X and y axis are constant and Z axis are at one place.

91
00:06:22,000 --> 00:06:23,000
As you see over here.

92
00:06:25,000 --> 00:06:27,000
So you just go next.

93
00:06:28,000 --> 00:06:29,000
Start your first project.

94
00:06:30,000 --> 00:06:32,000
Just click over here.

95
00:06:35,000 --> 00:06:40,000
You just go through this pdf.

96
00:06:40,000 --> 00:06:44,000
It is already available on my website also.

97
00:06:46,000 --> 00:06:48,000
In this case, I'm just.

98
00:06:49,000 --> 00:06:50,000
Creating a project.

99
00:06:53,000 --> 00:06:55,000
Create a project right now.

100
00:06:58,000 --> 00:07:01,000
I just discuss some basic component.

101
00:07:02,000 --> 00:07:03,000
Like.

102
00:07:05,000 --> 00:07:15,000
Accelerometer, inbuilt accelerometer, another one to turn on the LEDs and to turn on the.

103
00:07:15,000 --> 00:07:16,000
To acquire the button.

104
00:07:17,000 --> 00:07:18,000
Input.

105
00:07:18,000 --> 00:07:28,000
So over here, as you see right now, when you just click on Create Project, in that case, you just

106
00:07:28,000 --> 00:07:29,000
select the My Rio.

107
00:07:31,000 --> 00:07:32,000
It will take some time.

108
00:07:38,000 --> 00:07:40,000
Select the Mario over here.

109
00:07:40,000 --> 00:07:41,000
Mario Project.

110
00:07:42,000 --> 00:07:50,000
If you are not selecting Mario Project, in that case, the Express or Mario Toolbox is not available

111
00:07:50,000 --> 00:07:51,000
with you.

112
00:07:55,000 --> 00:08:00,000
So right now I just click on the button next over here.

113
00:08:01,000 --> 00:08:03,000
You can name it.

114
00:08:03,000 --> 00:08:06,000
Name your project like.

115
00:08:08,000 --> 00:08:10,000
I just put over here.

116
00:08:10,000 --> 00:08:11,000
YouTube projects.

117
00:08:17,000 --> 00:08:18,000
YouTube.

118
00:08:21,000 --> 00:08:21,000
Over here.

119
00:08:21,000 --> 00:08:26,000
You can check all the functionalities related to the given Mario.

120
00:08:27,000 --> 00:08:30,000
It is having 12 analog inputs.

121
00:08:31,000 --> 00:08:32,000
Eight analog outputs.

122
00:08:33,000 --> 00:08:37,000
Faulty digital input outputs one button onboard.

123
00:08:37,000 --> 00:08:38,000
Four LEDs.

124
00:08:39,000 --> 00:08:40,000
Accelerometer.

125
00:08:40,000 --> 00:08:40,000
Four.

126
00:08:40,000 --> 00:08:41,000
Three axis.

127
00:08:43,000 --> 00:08:48,000
P pin eight pins we have and.

128
00:08:50,000 --> 00:08:58,000
Over here, different communication protocols like serial peripheral interface spi I to see over here

129
00:08:58,000 --> 00:09:00,000
inter-integrated circuit Uart.

130
00:09:01,000 --> 00:09:05,000
You just find out universal asynchronous receiver and transmitter.

131
00:09:05,000 --> 00:09:08,000
And for the interrupts we have.

132
00:09:09,000 --> 00:09:17,000
ECR eight interrupts in this case and this encoder for encoders we have.

133
00:09:17,000 --> 00:09:20,000
Okay, so now I just finish it.

134
00:09:22,000 --> 00:09:25,000
Just go to the blank project.

135
00:09:27,000 --> 00:09:28,000
And just finish it.

136
00:09:29,000 --> 00:09:29,000
It will.

137
00:09:31,000 --> 00:09:33,000
Open a new window for me.

138
00:09:34,000 --> 00:09:39,000
It will take some time according to your system performance.

139
00:10:09,000 --> 00:10:10,000
Maybe some issue is there.

140
00:10:12,000 --> 00:10:14,000
This time is hanging right now.

141
00:10:14,000 --> 00:10:16,000
Just close this.

142
00:10:22,000 --> 00:10:24,000
I just want to refresh the system.

143
00:10:49,000 --> 00:10:54,000
I think the name Project Name is wrong in my case right now.

144
00:10:54,000 --> 00:10:57,000
Just make it untitled.

145
00:10:57,000 --> 00:10:58,000
Project 14.

146
00:10:58,000 --> 00:10:59,000
Right now it is working.

147
00:11:00,000 --> 00:11:03,000
Maybe the project name is wrong.

148
00:11:03,000 --> 00:11:10,000
As you see right now, it is connecting or creating the project for me.

149
00:11:10,000 --> 00:11:18,000
In the case of my view, every time you just need to deploy your project inside the My Rio.

150
00:11:18,000 --> 00:11:30,000
When the program is properly deployed in the Rio, in that case you can you just remove this USB and

151
00:11:30,000 --> 00:11:31,000
it will work for you.

152
00:11:31,000 --> 00:11:32,000
Okay.

153
00:11:32,000 --> 00:11:39,000
So over here, as you see in the projects and Rio, and this is the particular serial number for my

154
00:11:39,000 --> 00:11:46,000
my Rio and over here, this is the main the automated VI that is created.

155
00:11:46,000 --> 00:11:49,000
It is for the accelerometer that is created by an AI.

156
00:11:50,000 --> 00:11:59,000
So right now, I just run it and you just check the waveform when I just move the.

157
00:12:00,000 --> 00:12:06,000
Mario, there are three waveforms, one for x axis, one for Y axis, one for Z axis.

158
00:12:07,000 --> 00:12:09,000
Right now it is deploying.

159
00:12:15,000 --> 00:12:20,000
As you see right now, three X is zero zero.

160
00:12:20,000 --> 00:12:25,000
And when I just move it, it is changing.

161
00:12:25,000 --> 00:12:28,000
All the X's are right now changing.

162
00:12:29,000 --> 00:12:33,000
Okay, so let's check the code for it right now.

163
00:12:33,000 --> 00:12:34,000
I just stop it.

164
00:12:34,000 --> 00:12:40,000
Go to the control and the block diagram window over here.

165
00:12:41,000 --> 00:12:43,000
You just check over here.

166
00:12:43,000 --> 00:12:44,000
I have the.

167
00:12:45,000 --> 00:12:45,000
First.

168
00:12:45,000 --> 00:12:48,000
Initially, I just use the case.

169
00:12:49,000 --> 00:12:51,000
Let's sequence over here.

170
00:12:51,000 --> 00:12:54,000
Initially, there is the error.

171
00:12:55,000 --> 00:12:59,000
Then in the main loop we have accelerometer.

172
00:13:00,000 --> 00:13:02,000
X axis y axis Z axis.

173
00:13:03,000 --> 00:13:05,000
Then we have the build array function.

174
00:13:05,000 --> 00:13:12,000
Over here we have the accelerometer output, and if some error is there, it will automatically off

175
00:13:12,000 --> 00:13:12,000
the.

176
00:13:13,000 --> 00:13:17,000
Loop and there is a ten second millisecond delay there.

177
00:13:17,000 --> 00:13:21,000
And over here, this is to reset the mirror.

178
00:13:22,000 --> 00:13:28,000
And if you want to check what happens inside this accelerometer express, this is the.

179
00:13:28,000 --> 00:13:33,000
Accelerometer Express I just showed you where you can find out this particular express VI.

180
00:13:35,000 --> 00:13:42,000
From here you can configure your accelerometer also and which waveform you want.

181
00:13:42,000 --> 00:13:47,000
Like if I just unclick this, it will give me only x axis.

182
00:13:48,000 --> 00:13:50,000
And over here, this is the code.

183
00:13:51,000 --> 00:13:54,000
Via code inside the smart open.

184
00:13:55,000 --> 00:13:56,000
Over here.

185
00:13:56,000 --> 00:13:58,000
You just need to select the channel.

186
00:13:58,000 --> 00:13:59,000
Read my.

187
00:14:00,000 --> 00:14:01,000
And over here.

188
00:14:01,000 --> 00:14:03,000
These are my three axes.

189
00:14:03,000 --> 00:14:09,000
Okay, so let's say I want only x axis over here in that case.

190
00:14:09,000 --> 00:14:13,000
Or you can say I just need only X and y axis over here.

191
00:14:13,000 --> 00:14:15,000
I just remove it.

192
00:14:16,000 --> 00:14:18,000
Control B over here.

193
00:14:18,000 --> 00:14:22,000
In this case, I just minimize this.

194
00:14:24,000 --> 00:14:25,000
Control.

195
00:14:25,000 --> 00:14:27,000
You control B.

196
00:14:28,000 --> 00:14:30,000
I just minimize this.

197
00:14:30,000 --> 00:14:32,000
Connect it again.

198
00:14:33,000 --> 00:14:36,000
And right now only two waveforms are there.

199
00:14:36,000 --> 00:14:38,000
Z axis is not present.

200
00:14:39,000 --> 00:14:41,000
So run it again.

201
00:14:41,000 --> 00:14:43,000
You need to deploy it.

202
00:14:44,000 --> 00:14:45,000
Before deploying.

203
00:14:45,000 --> 00:14:47,000
You just need to save it also.

204
00:14:52,000 --> 00:14:57,000
As you see, there are only two waveforms for x axis and y axis.

205
00:14:57,000 --> 00:15:00,000
And right now I'm just changing the Y.

206
00:15:01,000 --> 00:15:05,000
Let's now just show you where is.

207
00:15:06,000 --> 00:15:07,000
This particular express.

208
00:15:09,000 --> 00:15:10,000
Exist.

209
00:15:10,000 --> 00:15:15,000
Control T in the functional palette.

210
00:15:15,000 --> 00:15:21,000
You just move over here in the menu, you just find out different express.

211
00:15:21,000 --> 00:15:23,000
Related to Mario.

212
00:15:24,000 --> 00:15:24,000
Okay.

213
00:15:24,000 --> 00:15:25,000
Over here.

214
00:15:25,000 --> 00:15:26,000
This is the accelerometer.

215
00:15:27,000 --> 00:15:28,000
XVI.

216
00:15:28,000 --> 00:15:32,000
So this is how you can generate right now.

217
00:15:32,000 --> 00:15:33,000
Just close this.

218
00:15:34,000 --> 00:15:36,000
Create a new VI for me.

219
00:15:38,000 --> 00:15:41,000
It should be inside the program only.

220
00:15:42,000 --> 00:15:45,000
I just delete this particular main.

221
00:15:50,000 --> 00:15:58,000
Okay, now I just open this particular untitled one control T over here.

222
00:15:59,000 --> 00:16:06,000
I just show you different express programs right now in this particular video lecture.

223
00:16:07,000 --> 00:16:11,000
So over here I just go to this x raw meter.

224
00:16:21,000 --> 00:16:26,000
And over here I just got the same x, y, z axis.

225
00:16:27,000 --> 00:16:28,000
That's okay.

226
00:16:33,000 --> 00:16:37,000
Right now I have three Xs over here.

227
00:16:37,000 --> 00:16:43,000
I need to build these three X's right now.

228
00:16:44,000 --> 00:16:50,000
Or here, X axis y axis and Z axis and.

229
00:16:51,000 --> 00:16:55,000
I need a one waveform graph over here.

230
00:16:55,000 --> 00:16:58,000
It is for the zero meter output.

231
00:16:58,000 --> 00:17:02,000
I just connect this one for the continuous readings.

232
00:17:02,000 --> 00:17:04,000
I just put a while loop over here.

233
00:17:05,000 --> 00:17:10,000
Create control over here if you want to stop manually.

234
00:17:11,000 --> 00:17:13,000
Using the mirror only.

235
00:17:14,000 --> 00:17:20,000
So let's go with another button that is on board.

236
00:17:20,000 --> 00:17:20,000
Button.

237
00:17:20,000 --> 00:17:23,000
I want to stop using that button only.

238
00:17:23,000 --> 00:17:27,000
So in that case, you just need to select this button.

239
00:17:28,000 --> 00:17:31,000
I just place over here.

240
00:17:31,000 --> 00:17:36,000
This button will generate true and false conditions for me.

241
00:17:36,000 --> 00:17:40,000
As you see over here, this is the configuration.

242
00:17:40,000 --> 00:17:42,000
This is the button over here.

243
00:17:42,000 --> 00:17:43,000
I just press.

244
00:17:43,000 --> 00:17:44,000
Okay.

245
00:17:46,000 --> 00:17:50,000
Right now it is configuring configuring for me.

246
00:17:52,000 --> 00:18:01,000
Now you need to just connect this button over here and just put small delay inside this of, let's say,

247
00:18:01,000 --> 00:18:02,000
ten milliseconds.

248
00:18:03,000 --> 00:18:04,000
Let's run it.

249
00:18:05,000 --> 00:18:14,000
So right now, the save all, it is deploying the code inside the my Rio save the code.

250
00:18:24,000 --> 00:18:27,000
Right now it is deploying the code.

251
00:18:34,000 --> 00:18:37,000
So over here I got the waveform.

252
00:18:37,000 --> 00:18:43,000
And if you want to stop this, I just press a button over here and it will stop my code.

253
00:18:43,000 --> 00:18:44,000
Okay.

254
00:18:45,000 --> 00:18:48,000
If you want all the waveforms right now.

255
00:18:49,000 --> 00:18:52,000
As you see, single value is there.

256
00:18:53,000 --> 00:19:02,000
So in this case, you need to use chart in place of graph.

257
00:19:02,000 --> 00:19:04,000
Let's check what happened.

258
00:19:04,000 --> 00:19:08,000
If I just put one chart over here?

259
00:19:10,000 --> 00:19:12,000
Just connect this again.

260
00:19:12,000 --> 00:19:13,000
Run it.

261
00:19:14,000 --> 00:19:15,000
Save it.

262
00:19:15,000 --> 00:19:16,000
Deploy it.

263
00:19:22,000 --> 00:19:25,000
As you see over here, I got the different values.

264
00:19:26,000 --> 00:19:30,000
If you want to stop it, I'm just manually stop it using the button.

265
00:19:30,000 --> 00:19:33,000
Okay, so this is how you can generate.

266
00:19:35,000 --> 00:19:40,000
Waveform using and Mario and to control the Mario.

267
00:19:40,000 --> 00:19:44,000
So this is all about today's lecture.

268
00:19:44,000 --> 00:19:45,000
Thank you.

