Hello, friends.
Today I will tell you how to write a digital signal using python in for the deck card in ideally cell.
So first I already made a code.
I just open this so here.
This is my digital write code.
So as you see, I just want to import an DMX then with an DMX dot task as task.
You have to call the channel's digital output channel because right now in the any decade USB 6001 we
have total 13 digital pins.
And I am right now using port zero digital pin zero.
As you see, my device name is one port zero and line zero I'm using and I'm using as digital pin as
a output port.
You can use digital pin as a input port or as a output port.
It is up to you then the value is initially false.
So just change it to true, let's say.
Then start the task, write the value that is true and stop the task.
Right now, I'm just not using any loop in this case, so just go to the hardware part.
As you see over here in the Iocb 6001, we have different digital ports.
As you see, this is port zero and line zero one up to seven.
Then port one from 0 to 3 and the port two that only have zero pin.
So and over here we have some voltage signal like five volt available over here and some ground also
available.
So right now I'm just using an LED, as you see over here.
This is my LED is connected and I'm just using its positive pin.
I'm just connecting its positive pin to the zero pin of port zero and ground to the ground.
So right now, just go to the software part and run the code.
When you hit on run, the module just goes on.
So it is asking me to save the code.
So right now, as you see, LED goes on.
As you see right now, if you want to change the code from true to false.
True to false.
As you see, just save it and hit on run button.
When you hit on run button, it will stop the LED as you see.
So this is how you can write or how you can generate digital signal using an USB 6001 with the help
of python code.
Thank you.