1
00:00:12,000 --> 00:00:12,000
Today.

2
00:00:13,000 --> 00:00:26,000
I will tell you how to generate multiple analog signals using any USD 6009 card with the help of Python.

3
00:00:27,000 --> 00:00:38,000
So over here in the previous video, I just tell you about the how you can generate analog signal using

4
00:00:40,000 --> 00:00:43,000
a USB 6009 card for multiple signals.

5
00:00:43,000 --> 00:00:46,000
You have to just copy this part.

6
00:00:49,000 --> 00:00:55,000
And place it as you see over here with the next task.

7
00:00:55,000 --> 00:00:59,000
I'm just starting a task or assigning the task over here.

8
00:00:59,000 --> 00:01:00,000
Analog output.

9
00:01:02,000 --> 00:01:09,000
I want to perform analog task and it is analog output as a voltage device.

10
00:01:09,000 --> 00:01:16,000
One is selected, PIN is selected A0 zero analog output pin zero.

11
00:01:16,000 --> 00:01:20,000
And in the my channel I just set 0 to 5 maximum volt.

12
00:01:21,000 --> 00:01:27,000
And initially over here, let's say it is five volt and the variable name is five.

13
00:01:27,000 --> 00:01:30,000
And I want to just also print this value.

14
00:01:30,000 --> 00:01:33,000
So what I just so print

15
00:01:37,000 --> 00:01:37,000
value.

16
00:01:42,000 --> 00:01:43,000
I want to just check also.

17
00:01:43,000 --> 00:01:55,000
And for another pin, I just change it a zero to a one because on the in the case of my USB 6009, only

18
00:01:55,000 --> 00:01:57,000
two analog ports are there.

19
00:01:57,000 --> 00:02:00,000
My channel in the range is again 0 to 5.

20
00:02:00,000 --> 00:02:07,000
And over here the value variable name is value one, and the value for this variable is also five volt

21
00:02:08,000 --> 00:02:09,000
or you can say five.

22
00:02:09,000 --> 00:02:13,000
And also I want to just print this value.

23
00:02:16,000 --> 00:02:17,000
In the code also.

24
00:02:18,000 --> 00:02:23,000
So in case in this case the value is the variable is value one.

25
00:02:24,000 --> 00:02:26,000
Okay, So save it.

26
00:02:26,000 --> 00:02:29,000
Now you have to just run it.

27
00:02:29,000 --> 00:02:37,000
And on the hardware part, I just connect the negative pin to the ground and positive pin to the A0

28
00:02:37,000 --> 00:02:44,000
zero and in this case, A0 one positive pin a0 one is connected to the positive pin and ground blue

29
00:02:44,000 --> 00:02:46,000
one is ground and it is connected to the ground.

30
00:02:46,000 --> 00:02:49,000
So when you click on run button.

31
00:02:51,000 --> 00:02:53,000
It will print five five.

32
00:02:53,000 --> 00:02:57,000
As you see, both the LEDs goes high in this case.

33
00:02:57,000 --> 00:03:06,000
And now I want to just change this value from 5 to 3 to check the brightness.

34
00:03:06,000 --> 00:03:10,000
So again, save it and run it.

35
00:03:14,000 --> 00:03:17,000
So now the brightness is less.

36
00:03:17,000 --> 00:03:23,000
So again, I want to just change the value from 3 to 2.

37
00:03:27,000 --> 00:03:29,000
Save it and run it.

38
00:03:31,000 --> 00:03:32,000
Now the value is.

39
00:03:33,000 --> 00:03:36,000
Brightness is very less and the value is two two.

40
00:03:36,000 --> 00:03:41,000
Again, when I just put this value is five.

41
00:03:44,000 --> 00:03:47,000
Now again, run it.

42
00:03:49,000 --> 00:03:51,000
Brightness is high in this case.

43
00:03:51,000 --> 00:03:52,000
As you see.

44
00:03:52,000 --> 00:04:00,000
And when it is one because it is below the threshold value, both the value is one.

45
00:04:01,000 --> 00:04:02,000
Let's run it.

46
00:04:06,000 --> 00:04:10,000
Modalities goes low and when you change.

47
00:04:10,000 --> 00:04:17,000
Alternatively, so one is five at the analog a0 zero.

48
00:04:17,000 --> 00:04:23,000
I just write five and another I just write one.

49
00:04:23,000 --> 00:04:25,000
In this case, only one goes high.

50
00:04:26,000 --> 00:04:26,000
As you see.

51
00:04:26,000 --> 00:04:32,000
And when I change the value, it is one and it is five.

52
00:04:33,000 --> 00:04:36,000
Save it and run it.

53
00:04:36,000 --> 00:04:42,000
So now it will generate signal according to my given condition.

54
00:04:42,000 --> 00:04:50,000
So this is how you can generate multiple analog signals using an USB 6009 deck card.

