1
00:00:04,000 --> 00:00:05,000
Hello, friends.

2
00:00:05,000 --> 00:00:12,000
Today I just tell you how to generate multiple signals using visa.

3
00:00:13,000 --> 00:00:19,000
So in this case we just generate two serial signals.

4
00:00:19,000 --> 00:00:23,000
One is A and one is B using LabVIEW.

5
00:00:23,000 --> 00:00:31,000
And based on that signal, my Arduino will generate signals for two different LEDs.

6
00:00:31,000 --> 00:00:34,000
So first I just go to the hardware.

7
00:00:34,000 --> 00:00:35,000
As you see over here.

8
00:00:35,000 --> 00:00:37,000
This is my PIN number.

9
00:00:37,000 --> 00:00:44,000
So in the code, as you see over here, I just use PIN number nine and pin number ten.

10
00:00:44,000 --> 00:00:47,000
So I just connect the PIN number nine.

11
00:00:48,000 --> 00:00:53,000
So over here, this is my pin number nine, Positive pin.

12
00:00:53,000 --> 00:00:56,000
And over here, this is my pin number ten.

13
00:00:56,000 --> 00:00:59,000
I just connect this pin over here.

14
00:01:00,000 --> 00:01:07,000
And the ground for the particular Led is over here, let's say.

15
00:01:09,000 --> 00:01:11,000
So I just connect the Led.

16
00:01:14,000 --> 00:01:16,000
So over here, this is my second Led.

17
00:01:16,000 --> 00:01:18,000
This is my first Led.

18
00:01:18,000 --> 00:01:24,000
So in this case, I just go to the software part.

19
00:01:25,000 --> 00:01:27,000
So over here, this is my Arduino code.

20
00:01:27,000 --> 00:01:29,000
I just set the pin numbers.

21
00:01:29,000 --> 00:01:31,000
PIN number nine and pin number ten.

22
00:01:31,000 --> 00:01:33,000
I just use variable.

23
00:01:33,000 --> 00:01:36,000
Var one is used for serial data input.

24
00:01:37,000 --> 00:01:40,000
So over here we set up pin mode.

25
00:01:40,000 --> 00:01:46,000
Led one is my output pin led two is my also output pin on the arduino board.

26
00:01:46,000 --> 00:01:51,000
Then I just go void loop if serial data is available.

27
00:01:51,000 --> 00:01:59,000
In that case, if variable one is equal to a, in that case it will generate high signal through Led

28
00:01:59,000 --> 00:02:04,000
one else it generates low signal through Led one.

29
00:02:04,000 --> 00:02:15,000
If variable one is equal to B, then it will generate signal for Led two high and low signal otherwise.

30
00:02:15,000 --> 00:02:18,000
Okay, so this is the code.

31
00:02:18,000 --> 00:02:24,000
So I just set the port on port eight, run the code.

32
00:02:26,000 --> 00:02:31,000
So in the case of Visa you just use Arduino also.

33
00:02:32,000 --> 00:02:38,000
So there is some error failed uploading error exist.

34
00:02:38,000 --> 00:02:42,000
So I just need to disconnect this connect again.

35
00:02:44,000 --> 00:02:47,000
Let's check what is the error.

36
00:02:49,000 --> 00:03:00,000
Yes, Claude, this variable one a, b, I just again, run it, upload it.

37
00:03:04,000 --> 00:03:07,000
So now as you see uploading done.

38
00:03:08,000 --> 00:03:10,000
So now you just close this window.

39
00:03:10,000 --> 00:03:14,000
Just go to the LabVIEW part over here.

40
00:03:14,000 --> 00:03:18,000
As you see in the my previous video, I just used these components.

41
00:03:18,000 --> 00:03:22,000
That is my visa serial visa, right?

42
00:03:22,000 --> 00:03:23,000
Visa close.

43
00:03:23,000 --> 00:03:26,000
And this is my error handler.

44
00:03:26,000 --> 00:03:37,000
I just again make label of all these I just on the labels as you see

45
00:03:41,000 --> 00:03:50,000
control U so I just minimize this somewhat over here.

46
00:03:50,000 --> 00:03:58,000
So this is my visa simple error handler In this case, as you see from here, it will just read the

47
00:03:58,000 --> 00:03:59,000
serial data.

48
00:03:59,000 --> 00:04:02,000
I just set the port over here.

49
00:04:02,000 --> 00:04:08,000
The port number in this case is my com port eight.

50
00:04:08,000 --> 00:04:10,000
I just connect this one over here.

51
00:04:11,000 --> 00:04:19,000
Now I just select over here as you see the same function in this A when true is there, it will send

52
00:04:19,000 --> 00:04:23,000
a and over here I just need to put B over here.

53
00:04:23,000 --> 00:04:27,000
It will send B signal to the Arduino board.

54
00:04:27,000 --> 00:04:29,000
So now I just run it.

55
00:04:35,000 --> 00:04:39,000
So in this case, the comport is busy.

56
00:04:39,000 --> 00:04:43,000
That's why it will creating some error for me.

57
00:04:43,000 --> 00:04:46,000
So I just stop it.

58
00:04:46,000 --> 00:04:49,000
I just again

59
00:04:52,000 --> 00:04:54,000
open my Arduino code.

60
00:05:02,000 --> 00:05:08,000
In this case, I just check for the error.

61
00:05:13,000 --> 00:05:14,000
Over here.

62
00:05:14,000 --> 00:05:16,000
There is my Arduino ID code.

63
00:05:30,000 --> 00:05:34,000
So as you see, PIN 910 is set.

64
00:05:35,000 --> 00:05:37,000
Code is ready.

65
00:05:38,000 --> 00:05:44,000
So I just again use the com port over here.

66
00:05:44,000 --> 00:05:45,000
Run it.

67
00:05:53,000 --> 00:05:54,000
Uploading is done.

68
00:05:54,000 --> 00:05:56,000
In this case, I just minimize this.

69
00:05:57,000 --> 00:05:58,000
I just run it.

70
00:06:06,000 --> 00:06:09,000
I need to stop this again.

71
00:06:09,000 --> 00:06:10,000
Hit on run button.

72
00:06:16,000 --> 00:06:17,000
Let's check.

73
00:06:17,000 --> 00:06:18,000
What is the error?

74
00:06:24,000 --> 00:06:32,000
It is sending data, but let's check the signal also.

75
00:06:32,000 --> 00:06:34,000
This is my high signal.

76
00:06:35,000 --> 00:06:36,000
This is my low signal.

77
00:06:41,000 --> 00:06:45,000
Let's check what is present over this wire.

78
00:06:45,000 --> 00:06:48,000
Create indicator for this.

79
00:06:50,000 --> 00:06:53,000
And again, create indicator for this

80
00:06:56,000 --> 00:06:57,000
control you.

81
00:07:01,000 --> 00:07:04,000
Again, run it right now.

82
00:07:04,000 --> 00:07:10,000
It is in all condition a, B, it is sending.

83
00:07:24,000 --> 00:07:30,000
So as you see over here, I just changed the code.

84
00:07:32,000 --> 00:07:39,000
So when you hit on run button, right now, code is running when I press this button.

85
00:07:42,000 --> 00:07:47,000
So first I just need to, again run it.

86
00:07:49,000 --> 00:07:51,000
When I hit on run button.

87
00:07:56,000 --> 00:07:58,000
Something is wrong over here.

88
00:07:58,000 --> 00:08:02,000
I need to just reconnect it.

89
00:08:05,000 --> 00:08:08,000
So now I just again hit on run button.

90
00:08:14,000 --> 00:08:17,000
So as you see, both the ladies are right now.

91
00:08:17,000 --> 00:08:22,000
On, on, off, on, off.

92
00:08:22,000 --> 00:08:27,000
This is how you can work with multiple ladies using Visa.

93
00:08:28,000 --> 00:08:30,000
So this is all about today's lecture.

94
00:08:30,000 --> 00:08:31,000
Thank you.

