1
00:00:05,000 --> 00:00:06,000
Hello, friends.

2
00:00:06,000 --> 00:00:16,000
Today I will tell you how to read a digital signal using any USB DAC card with the help of Python programming.

3
00:00:16,000 --> 00:00:18,000
So over here I have the code.

4
00:00:18,000 --> 00:00:21,000
You have to just import any max.

5
00:00:22,000 --> 00:00:27,000
Then you have to call or you have to start the task in the task.

6
00:00:27,000 --> 00:00:31,000
You have to just specify the digital pin as an input pin.

7
00:00:32,000 --> 00:00:38,000
As you see, Task Dot D stands for digital input channels and digital input channel.

8
00:00:38,000 --> 00:00:46,000
And in this case the device name is DEV1, and the port I'm using is zero and line is zero.

9
00:00:46,000 --> 00:00:56,000
As you already know, in my previous videos, I already told you that the digital pins we can use as

10
00:00:56,000 --> 00:01:05,000
an output port or as an input port means we can generate signal using the specified digital pin and

11
00:01:05,000 --> 00:01:14,000
we can also acquire the signal or also acquire the digital signal using the that specified pin means

12
00:01:14,000 --> 00:01:16,000
it will work on dual mode.

13
00:01:17,000 --> 00:01:22,000
It will generate a signal or it will acquire a digital signal.

14
00:01:23,000 --> 00:01:26,000
Okay, so over here I just start the task right now.

15
00:01:26,000 --> 00:01:34,000
The value task read and print value start last, stop the task.

16
00:01:34,000 --> 00:01:36,000
So you have to run it.

17
00:01:36,000 --> 00:01:42,000
So now just move to the hardware part in the hardware part.

18
00:01:42,000 --> 00:01:51,000
As you already know, over here we have digital pins and right now I'm using this pin number zero or

19
00:01:51,000 --> 00:01:57,000
port zero, and I'm just using a five volt signal with this.

20
00:01:57,000 --> 00:02:01,000
I'm just using a button that is my push button.

21
00:02:01,000 --> 00:02:03,000
You have to push it.

22
00:02:03,000 --> 00:02:11,000
It will pass the value that is five volt to the port zero digital pin zero.

23
00:02:11,000 --> 00:02:17,000
When you move your hand, it will stop the value.

24
00:02:18,000 --> 00:02:23,000
Or you can say right now the value is not passing to the port zero.

25
00:02:23,000 --> 00:02:33,000
In that case, the value is false and if you press it, the value is true means it will pass five volt

26
00:02:33,000 --> 00:02:34,000
to the digital port.

27
00:02:35,000 --> 00:02:42,000
So now I just pressing it and hit on run button run module.

28
00:02:42,000 --> 00:02:46,000
As you see, I'm getting over here.

29
00:02:46,000 --> 00:02:47,000
True value.

30
00:02:47,000 --> 00:02:56,000
Now I'm just moving my hand and again, I'm just running the code run module as you see right now.

31
00:02:56,000 --> 00:03:03,000
I got false again when I pressing the value, just minimize it.

32
00:03:03,000 --> 00:03:04,000
Run it again.

33
00:03:04,000 --> 00:03:04,000
Run it.

34
00:03:04,000 --> 00:03:12,000
So now true when I again move it, move my hand from the button.

35
00:03:12,000 --> 00:03:15,000
So now I again run it.

36
00:03:16,000 --> 00:03:19,000
So now I just got the value false.

37
00:03:19,000 --> 00:03:30,000
So this is how you can read a digital signal from deck card 6001 with the help of Python programming.

38
00:03:30,000 --> 00:03:31,000
Thank you.

