1
00:00:04,000 --> 00:00:05,000
Today.

2
00:00:05,000 --> 00:00:13,000
I will tell you how to interface and deck devices with Python.

3
00:00:13,000 --> 00:00:18,000
Or you can say how to program an DEC card using Python.

4
00:00:18,000 --> 00:00:28,000
So for that purpose over here we have a document that is using any DEC device with Python and DEC max.

5
00:00:29,000 --> 00:00:32,000
So over here we have procedure.

6
00:00:32,000 --> 00:00:35,000
So first you have to download and install Python.

7
00:00:35,000 --> 00:00:41,000
So for that purpose I just go to my browser and download python.

8
00:00:41,000 --> 00:00:42,000
Python.

9
00:00:43,000 --> 00:00:44,000
Download.

10
00:00:46,000 --> 00:00:47,000
Just click on it.

11
00:00:48,000 --> 00:00:54,000
So over here, just click on this download Python.

12
00:00:54,000 --> 00:01:02,000
So as you see over here, this is the official site, python.org downloads.

13
00:01:02,000 --> 00:01:06,000
And this is my latest Python software.

14
00:01:06,000 --> 00:01:07,000
Just click on this.

15
00:01:08,000 --> 00:01:13,000
So my software is right now downloaded.

16
00:01:13,000 --> 00:01:21,000
So now you have to just install this Python software into your system.

17
00:01:21,000 --> 00:01:22,000
So just click on this.

18
00:01:31,000 --> 00:01:32,000
As you see.

19
00:01:33,000 --> 00:01:34,000
Add path.

20
00:01:35,000 --> 00:01:36,000
Install.

21
00:01:38,000 --> 00:01:41,000
It will take some time according to your system performance.

22
00:01:49,000 --> 00:01:49,000
System.

23
00:01:49,000 --> 00:01:51,000
Three point 11.3.

24
00:01:51,000 --> 00:01:53,000
The latest version is over there.

25
00:01:53,000 --> 00:02:01,000
So now I just require PIP, that is package management system for the python.

26
00:02:01,000 --> 00:02:10,000
So for that purpose I just type how to install pip in the python using.

27
00:02:12,000 --> 00:02:13,000
Command prompt.

28
00:02:13,000 --> 00:02:18,000
So for that purpose, I just check first.

29
00:02:21,000 --> 00:02:24,000
This one in my command.

30
00:02:25,000 --> 00:02:26,000
Prompt.

31
00:02:30,000 --> 00:02:34,000
So now I just go to.

32
00:02:36,000 --> 00:02:41,000
The command that will install PIP inside my.

33
00:02:42,000 --> 00:02:45,000
BC So this is the command.

34
00:02:45,000 --> 00:02:51,000
I will just put these commands inside the description box.

35
00:02:56,000 --> 00:02:59,000
Python get pip.py.

36
00:03:01,000 --> 00:03:04,000
So now it is just.

37
00:03:04,000 --> 00:03:07,000
Collecting information.

38
00:03:08,000 --> 00:03:13,000
Successfully uninstalled PIP 23 .0.1.

39
00:03:21,000 --> 00:03:27,000
Because earlier I have EP 23.0.one.

40
00:03:27,000 --> 00:03:33,000
Now it will install PIP version into my system.

41
00:03:33,000 --> 00:03:34,000
Successfully installed.

42
00:03:35,000 --> 00:03:41,000
So now just check the version of PIP inside my system.

43
00:03:41,000 --> 00:03:42,000
Pip.

44
00:03:46,000 --> 00:03:50,000
It is already showing that 23 .0.1.

45
00:03:50,000 --> 00:03:52,000
Let's check through the command.

46
00:03:58,000 --> 00:04:01,000
As you see it, is installed.

47
00:04:02,000 --> 00:04:05,000
So now I just go to the.

48
00:04:07,000 --> 00:04:12,000
API that is any DMX Python API.

49
00:04:12,000 --> 00:04:15,000
So I just want this.

50
00:04:16,000 --> 00:04:22,000
Just copy this place this and hit on enter button.

51
00:04:37,000 --> 00:04:41,000
So it shows requirement already satisfied.

52
00:04:41,000 --> 00:04:44,000
So now I just check.

53
00:04:45,000 --> 00:04:47,000
This, So I just.

54
00:04:49,000 --> 00:04:50,000
Maximize it.

55
00:04:53,000 --> 00:05:02,000
There are different versions, different ways how to install this Python API.

56
00:05:03,000 --> 00:05:09,000
You can download it using PIP or you can install using setup tools.

57
00:05:09,000 --> 00:05:11,000
You can use this also.

58
00:05:12,000 --> 00:05:14,000
This is a easy method.

59
00:05:14,000 --> 00:05:18,000
You can also download the project source and run this.

60
00:05:18,000 --> 00:05:19,000
Okay.

61
00:05:19,000 --> 00:05:21,000
These are the different ways.

62
00:05:21,000 --> 00:05:30,000
So now you have to just open your python ideally and import deck max and press enter.

63
00:05:31,000 --> 00:05:32,000
Then.

64
00:05:32,000 --> 00:05:38,000
Type with an idk max task as and press enter.

65
00:05:38,000 --> 00:05:43,000
Make sure your device should be connected with your system.

66
00:05:43,000 --> 00:05:49,000
In my case I'm just using an ID card 6001.

67
00:05:49,000 --> 00:05:49,000
Okay.

68
00:05:50,000 --> 00:05:53,000
So now I just go to.

69
00:05:54,000 --> 00:05:55,000
I'm just closing this.

70
00:05:56,000 --> 00:05:59,000
I just go to my python ideally.

71
00:06:00,000 --> 00:06:04,000
So just put ideally in search box.

72
00:06:15,000 --> 00:06:25,000
So for here, you have to just put this command in import deck, Max.

73
00:06:29,000 --> 00:06:30,000
Just enter.

74
00:06:32,000 --> 00:06:32,000
Then.

75
00:06:33,000 --> 00:06:34,000
You have to.

76
00:06:34,000 --> 00:06:36,000
Just type task.

77
00:06:50,000 --> 00:06:51,000
And then.

78
00:06:54,000 --> 00:06:55,000
You have to just.

79
00:06:57,000 --> 00:06:57,000
But.

80
00:06:58,000 --> 00:07:00,000
This month it will select your.

81
00:07:03,000 --> 00:07:03,000
Channel.

82
00:07:05,000 --> 00:07:06,000
From the device.

83
00:07:07,000 --> 00:07:08,000
To the connected device.

84
00:07:09,000 --> 00:07:15,000
In this case, it is using device one and its analog input port zero.

85
00:07:15,000 --> 00:07:17,000
So just put over here.

86
00:07:20,000 --> 00:07:22,000
And using this commands.

87
00:07:22,000 --> 00:07:31,000
In the next video, I will show you how you can write analog signal, how you can write digital signal

88
00:07:31,000 --> 00:07:33,000
through an ID card.

89
00:07:35,000 --> 00:07:39,000
And in this case I'm just using Python language.

90
00:07:39,000 --> 00:07:40,000
Okay.

91
00:07:40,000 --> 00:07:41,000
So for today.

92
00:07:44,000 --> 00:07:45,000
This is all.

93
00:07:45,000 --> 00:07:46,000
Thank you.

94
00:08:19,000 --> 00:08:28,000
Here you need another software that is LabVIEW because LabVIEW provides the interfacing drivers for

95
00:08:28,000 --> 00:08:29,000
my deck card.

96
00:08:29,000 --> 00:08:33,000
So for that purpose, I just need basics of labview.

97
00:08:33,000 --> 00:08:37,000
So I just put labview download.

98
00:08:39,000 --> 00:08:42,000
And it will drag me to the national instrument site.

99
00:08:42,000 --> 00:08:44,000
Just click on first link.

100
00:08:46,000 --> 00:08:51,000
As you see over here, I got the latest software.

101
00:08:51,000 --> 00:08:53,000
I just select the OS.

102
00:08:53,000 --> 00:08:55,000
My OS is windows.

103
00:08:55,000 --> 00:09:00,000
You can go for different OS like Macintosh, Linux, etcetera.

104
00:09:01,000 --> 00:09:03,000
Here is the different version.

105
00:09:03,000 --> 00:09:14,000
The latest version is 2023 one and I just use base version and my system is 64 bit.

106
00:09:14,000 --> 00:09:16,000
You can go for 32 bit also.

107
00:09:17,000 --> 00:09:25,000
Okay, you can just download, click on download and it will download a 5.2 MB to eight MB file.

108
00:09:25,000 --> 00:09:33,000
That is the file related to package manager and package manager will help you to install LabVIEW software

109
00:09:33,000 --> 00:09:39,000
and if you want to completely download the software, you just click on install.

110
00:09:39,000 --> 00:09:44,000
And over here we have 37.78 GB latest software.

111
00:09:45,000 --> 00:09:55,000
So if you want to go for 32 bit, in that case, you just select this and you also download 37.36 GB

112
00:09:55,000 --> 00:09:56,000
software.

113
00:09:56,000 --> 00:10:07,000
Okay, so after downloading this install LabVIEW software and it will install package manager to your

114
00:10:07,000 --> 00:10:07,000
system.

115
00:10:07,000 --> 00:10:09,000
That is an emacs.

116
00:10:10,000 --> 00:10:12,000
Using this Animax.

117
00:10:12,000 --> 00:10:15,000
You can check the driver.

118
00:10:17,000 --> 00:10:22,000
Or you can check the hardware that is connected to your system.

119
00:10:23,000 --> 00:10:25,000
In the device.

120
00:10:26,000 --> 00:10:34,000
Part, as you see over here, device and interface part right now, as you see over here in this case

121
00:10:34,000 --> 00:10:37,000
right now, no device is connected.

122
00:10:37,000 --> 00:10:39,000
But earlier I just use.

123
00:10:39,000 --> 00:10:48,000
Any USB 6001 device is connected to my system as right now it shows cross button.

124
00:10:48,000 --> 00:10:59,000
Over here when I just connect my USB 6001 DECA to it it will the cross arrow will.

125
00:10:59,000 --> 00:11:00,000
Be removed.

126
00:11:01,000 --> 00:11:08,000
Let's check when I just connect my USB 6001.

127
00:11:09,000 --> 00:11:16,000
As you see over here in this case I'm just connecting my USB 6001 device.

128
00:11:17,000 --> 00:11:19,000
So I just.

129
00:11:23,000 --> 00:11:24,000
Checking it.

130
00:11:32,000 --> 00:11:37,000
It is present, as you see right now, the cross button removed.

131
00:11:37,000 --> 00:11:41,000
It is present status is present right now when I removed my USB.

132
00:11:42,000 --> 00:11:43,000
Let's check.

133
00:11:44,000 --> 00:11:45,000
Not present.

134
00:11:46,000 --> 00:11:50,000
So the status is not present and the error is 88705.

135
00:11:50,000 --> 00:12:01,000
So this is the requirement of when this is the requirement when you connect your deck card.

136
00:12:02,000 --> 00:12:09,000
With your PC and when you program your deck card or devices using Python.

137
00:12:10,000 --> 00:12:12,000
Okay, so this is all about today's lecture.

138
00:12:12,000 --> 00:12:13,000
Thank.

