1
00:00:05,000 --> 00:00:06,000
Hello, friends.

2
00:00:06,000 --> 00:00:20,000
Today I will tell you how to write a digital signal using python in for the deck card in ideally cell.

3
00:00:20,000 --> 00:00:24,000
So first I already made a code.

4
00:00:24,000 --> 00:00:28,000
I just open this so here.

5
00:00:29,000 --> 00:00:31,000
This is my digital write code.

6
00:00:33,000 --> 00:00:44,000
So as you see, I just want to import an DMX then with an DMX dot task as task.

7
00:00:45,000 --> 00:00:55,000
You have to call the channel's digital output channel because right now in the any decade USB 6001 we

8
00:00:55,000 --> 00:01:01,000
have total 13 digital pins.

9
00:01:01,000 --> 00:01:07,000
And I am right now using port zero digital pin zero.

10
00:01:07,000 --> 00:01:16,000
As you see, my device name is one port zero and line zero I'm using and I'm using as digital pin as

11
00:01:16,000 --> 00:01:17,000
a output port.

12
00:01:17,000 --> 00:01:21,000
You can use digital pin as a input port or as a output port.

13
00:01:21,000 --> 00:01:25,000
It is up to you then the value is initially false.

14
00:01:25,000 --> 00:01:29,000
So just change it to true, let's say.

15
00:01:31,000 --> 00:01:36,000
Then start the task, write the value that is true and stop the task.

16
00:01:36,000 --> 00:01:44,000
Right now, I'm just not using any loop in this case, so just go to the hardware part.

17
00:01:45,000 --> 00:01:53,000
As you see over here in the Iocb 6001, we have different digital ports.

18
00:01:53,000 --> 00:01:58,000
As you see, this is port zero and line zero one up to seven.

19
00:01:58,000 --> 00:02:05,000
Then port one from 0 to 3 and the port two that only have zero pin.

20
00:02:06,000 --> 00:02:13,000
So and over here we have some voltage signal like five volt available over here and some ground also

21
00:02:13,000 --> 00:02:14,000
available.

22
00:02:14,000 --> 00:02:19,000
So right now I'm just using an LED, as you see over here.

23
00:02:19,000 --> 00:02:25,000
This is my LED is connected and I'm just using its positive pin.

24
00:02:25,000 --> 00:02:31,000
I'm just connecting its positive pin to the zero pin of port zero and ground to the ground.

25
00:02:31,000 --> 00:02:36,000
So right now, just go to the software part and run the code.

26
00:02:36,000 --> 00:02:41,000
When you hit on run, the module just goes on.

27
00:02:41,000 --> 00:02:44,000
So it is asking me to save the code.

28
00:02:45,000 --> 00:02:49,000
So right now, as you see, LED goes on.

29
00:02:49,000 --> 00:02:57,000
As you see right now, if you want to change the code from true to false.

30
00:03:00,000 --> 00:03:01,000
True to false.

31
00:03:01,000 --> 00:03:04,000
As you see, just save it and hit on run button.

32
00:03:05,000 --> 00:03:09,000
When you hit on run button, it will stop the LED as you see.

33
00:03:09,000 --> 00:03:21,000
So this is how you can write or how you can generate digital signal using an USB 6001 with the help

34
00:03:21,000 --> 00:03:22,000
of python code.

35
00:03:23,000 --> 00:03:23,000
Thank you.

