Today.
I will tell you how to interface and deck devices with Python.
Or you can say how to program an DEC card using Python.
So for that purpose over here we have a document that is using any DEC device with Python and DEC max.
So over here we have procedure.
So first you have to download and install Python.
So for that purpose I just go to my browser and download python.
Python.
Download.
Just click on it.
So over here, just click on this download Python.
So as you see over here, this is the official site, python.org downloads.
And this is my latest Python software.
Just click on this.
So my software is right now downloaded.
So now you have to just install this Python software into your system.
So just click on this.
As you see.
Add path.
Install.
It will take some time according to your system performance.
System.
Three point 11.3.
The latest version is over there.
So now I just require PIP, that is package management system for the python.
So for that purpose I just type how to install pip in the python using.
Command prompt.
So for that purpose, I just check first.
This one in my command.
Prompt.
So now I just go to.
The command that will install PIP inside my.
BC So this is the command.
I will just put these commands inside the description box.
Python get pip.py.
So now it is just.
Collecting information.
Successfully uninstalled PIP 23 .0.1.
Because earlier I have EP 23.0.one.
Now it will install PIP version into my system.
Successfully installed.
So now just check the version of PIP inside my system.
Pip.
It is already showing that 23 .0.1.
Let's check through the command.
As you see it, is installed.
So now I just go to the.
API that is any DMX Python API.
So I just want this.
Just copy this place this and hit on enter button.
So it shows requirement already satisfied.
So now I just check.
This, So I just.
Maximize it.
There are different versions, different ways how to install this Python API.
You can download it using PIP or you can install using setup tools.
You can use this also.
This is a easy method.
You can also download the project source and run this.
Okay.
These are the different ways.
So now you have to just open your python ideally and import deck max and press enter.
Then.
Type with an idk max task as and press enter.
Make sure your device should be connected with your system.
In my case I'm just using an ID card 6001.
Okay.
So now I just go to.
I'm just closing this.
I just go to my python ideally.
So just put ideally in search box.
So for here, you have to just put this command in import deck, Max.
Just enter.
Then.
You have to.
Just type task.
And then.
You have to just.
But.
This month it will select your.
Channel.
From the device.
To the connected device.
In this case, it is using device one and its analog input port zero.
So just put over here.
And using this commands.
In the next video, I will show you how you can write analog signal, how you can write digital signal
through an ID card.
And in this case I'm just using Python language.
Okay.
So for today.
This is all.
Thank you.
Here you need another software that is LabVIEW because LabVIEW provides the interfacing drivers for
my deck card.
So for that purpose, I just need basics of labview.
So I just put labview download.
And it will drag me to the national instrument site.
Just click on first link.
As you see over here, I got the latest software.
I just select the OS.
My OS is windows.
You can go for different OS like Macintosh, Linux, etcetera.
Here is the different version.
The latest version is 2023 one and I just use base version and my system is 64 bit.
You can go for 32 bit also.
Okay, you can just download, click on download and it will download a 5.2 MB to eight MB file.
That is the file related to package manager and package manager will help you to install LabVIEW software
and if you want to completely download the software, you just click on install.
And over here we have 37.78 GB latest software.
So if you want to go for 32 bit, in that case, you just select this and you also download 37.36 GB
software.
Okay, so after downloading this install LabVIEW software and it will install package manager to your
system.
That is an emacs.
Using this Animax.
You can check the driver.
Or you can check the hardware that is connected to your system.
In the device.
Part, as you see over here, device and interface part right now, as you see over here in this case
right now, no device is connected.
But earlier I just use.
Any USB 6001 device is connected to my system as right now it shows cross button.
Over here when I just connect my USB 6001 DECA to it it will the cross arrow will.
Be removed.
Let's check when I just connect my USB 6001.
As you see over here in this case I'm just connecting my USB 6001 device.
So I just.
Checking it.
It is present, as you see right now, the cross button removed.
It is present status is present right now when I removed my USB.
Let's check.
Not present.
So the status is not present and the error is 88705.
So this is the requirement of when this is the requirement when you connect your deck card.
With your PC and when you program your deck card or devices using Python.
Okay, so this is all about today's lecture.
Thank.