1
00:00:04,000 --> 00:00:05,000
Hello, friends.

2
00:00:05,000 --> 00:00:16,000
Today I just show you how to calculate weight on different planets in our solar system.

3
00:00:16,000 --> 00:00:27,000
As you see over here, we have different planets like sun, Mercury, Venus, Earth, moon, Mars,

4
00:00:27,000 --> 00:00:30,000
Jupiter, Saturn, Uranus, Neptune.

5
00:00:30,000 --> 00:00:38,000
So I just create a LabVIEW program to calculate the weight on different planets.

6
00:00:38,000 --> 00:00:48,000
In this case, as you see, I just use a picture that I take it from Science North's dot org.

7
00:00:48,000 --> 00:00:51,000
As you see, this is the actual picture.

8
00:00:52,000 --> 00:00:56,000
I just import this picture inside the LabVIEW.

9
00:00:56,000 --> 00:01:00,000
I just show you how I just do it.

10
00:01:00,000 --> 00:01:07,000
So you can use this VI or this project in your science projects.

11
00:01:07,000 --> 00:01:19,000
Or you can also use in Science museum okay or in your space application if you want to check weight

12
00:01:19,000 --> 00:01:21,000
on different planets.

13
00:01:21,000 --> 00:01:25,000
So right now I just show you the demo when I just run it.

14
00:01:25,000 --> 00:01:36,000
As you see if the person's weight on earth is 66 or 46, I just put a delay of five seconds inside it.

15
00:01:36,000 --> 00:01:46,000
You can check the weight if the weight on earth is 78, weight on moon is 12, nearly 12kg.

16
00:01:46,000 --> 00:01:54,000
Okay, these data is in kilograms okay, so I just use these multiplying factor.

17
00:01:54,000 --> 00:02:01,000
As you see, the gravity vector for every planet is different.

18
00:02:01,000 --> 00:02:04,000
Let's say for the Earth it is one.

19
00:02:04,000 --> 00:02:07,000
For the moon is 0.166.

20
00:02:07,000 --> 00:02:14,000
This is the multiplying factor I just use to calculate the weight on different planets.

21
00:02:14,000 --> 00:02:17,000
And I have also a example.

22
00:02:17,000 --> 00:02:24,000
Let's say the surface gravity of planet or other body is what determine your weight.

23
00:02:24,000 --> 00:02:32,000
Because we know that weight is m into g, m is the mass and g is the acceleration due to gravity.

24
00:02:32,000 --> 00:02:34,000
It is different for every planet.

25
00:02:34,000 --> 00:02:37,000
It is in meter per second square.

26
00:02:37,000 --> 00:02:47,000
For example, Earth gravity is 9.8m/s, and for a person with a small weight of 64kg, the weight will

27
00:02:47,000 --> 00:02:50,000
be 64 into 9.8.

28
00:02:50,000 --> 00:02:52,000
That is in Newton.

29
00:02:52,000 --> 00:02:57,000
627 Newton, if you want to calculate it, is in weight.

30
00:02:57,000 --> 00:03:06,000
In kilograms, you just divide it by 9.8 because one is equal to equivalent to 9.8 newtons.

31
00:03:06,000 --> 00:03:13,000
So nearly 64kg is the weight of the person on the earth.

32
00:03:13,000 --> 00:03:17,000
Or because right now Earth gravity is used.

33
00:03:17,000 --> 00:03:18,000
So weight on the Earth.

34
00:03:18,000 --> 00:03:23,000
If you want to calculate in UK standard it is in pound.

35
00:03:23,000 --> 00:03:28,000
So 9.8 Newton equal to £2.2.

36
00:03:29,000 --> 00:03:33,000
So the weight of the person is £140.

37
00:03:33,000 --> 00:03:37,000
You can calculate the weight according to this calculation.

38
00:03:38,000 --> 00:03:49,000
Just produce different gravity of like Mercury, Mars, moon, Titan, Pluto etcetera.

39
00:03:49,000 --> 00:03:52,000
You just fill it for your project.

40
00:03:52,000 --> 00:03:57,000
Okay, so over here I just show you how.

41
00:03:57,000 --> 00:04:05,000
I just drag this picture inside the lab view and I just create how I create this case.

42
00:04:05,000 --> 00:04:09,000
So I just show you first the particular code for this case.

43
00:04:09,000 --> 00:04:17,000
Right now I just create a demo because if you have a waiting machine you just replace this part, this

44
00:04:17,000 --> 00:04:25,000
part and just produce, just acquire the data from the waiting machine and connect it over here.

45
00:04:25,000 --> 00:04:29,000
It will show you the real time data of your weight.

46
00:04:29,000 --> 00:04:30,000
Okay.

47
00:04:30,000 --> 00:04:32,000
So over here this is my while loop.

48
00:04:32,000 --> 00:04:35,000
As you see this is my iteration.

49
00:04:35,000 --> 00:04:42,000
It will start from zero and goes up to infinity until I just stop it okay.

50
00:04:42,000 --> 00:04:44,000
So over here this is a boolean button.

51
00:04:45,000 --> 00:04:48,000
This is the delay five second delay is there.

52
00:04:48,000 --> 00:04:49,000
It is up to you.

53
00:04:49,000 --> 00:04:52,000
So right now I just use a demo.

54
00:04:52,000 --> 00:05:00,000
In this case random number will produce 10 to 100 between values between 10 to 100.

55
00:05:00,000 --> 00:05:04,000
The the values are in floating as you see the.

56
00:05:04,000 --> 00:05:06,000
Here we have orange color.

57
00:05:07,000 --> 00:05:16,000
So let's say for the Earth I just use directly the weight represent inside this indicator.

58
00:05:16,000 --> 00:05:26,000
And if you want to check over the moon, as you see I just multiply this factor with 0.166 and I got

59
00:05:26,000 --> 00:05:28,000
the moon value.

60
00:05:28,000 --> 00:05:28,000
Okay.

61
00:05:28,000 --> 00:05:30,000
So this is how you can calculate.

62
00:05:31,000 --> 00:05:34,000
So I just place it over here.

63
00:05:34,000 --> 00:05:42,000
So right now again when I hit on run button, as you see for the five seconds the weight remains same.

64
00:05:43,000 --> 00:05:45,000
After that it will change.

65
00:05:45,000 --> 00:05:46,000
Okay.

66
00:05:46,000 --> 00:05:55,000
So this is how you can create science project for your different exhibitions.

67
00:05:56,000 --> 00:06:01,000
So now I just show you how I just do it.

68
00:06:01,000 --> 00:06:04,000
I just take the example of one only.

69
00:06:04,000 --> 00:06:12,000
So I just go to new VI Ctrl T over here.

70
00:06:12,000 --> 00:06:16,000
I just need to import the picture.

71
00:06:16,000 --> 00:06:21,000
So for that purpose just go to Import Picture to Clipboard.

72
00:06:23,000 --> 00:06:29,000
And over here on the desktop I have different pictures like this.

73
00:06:29,000 --> 00:06:36,000
Just drag it then go to edit paste it.

74
00:06:36,000 --> 00:06:40,000
As you see my picture is available over here.

75
00:06:41,000 --> 00:06:43,000
Right now it is a fixed picture.

76
00:06:48,000 --> 00:06:48,000
Okay.

77
00:06:51,000 --> 00:07:00,000
So I just need to minimize it a little bit because it goes out of the dashboard.

78
00:07:01,000 --> 00:07:03,000
So make it over here.

79
00:07:03,000 --> 00:07:08,000
Now I just go to the programming window.

80
00:07:08,000 --> 00:07:11,000
That is my block diagram window over here.

81
00:07:11,000 --> 00:07:13,000
Just create a while loop.

82
00:07:14,000 --> 00:07:21,000
Then just go to Numeric Palette over here I just use this random number.

83
00:07:22,000 --> 00:07:27,000
In this case you just change it to double because it is for floating values.

84
00:07:27,000 --> 00:07:29,000
Set the value.

85
00:07:29,000 --> 00:07:35,000
Let's say the maximum weight is 200, not 200.

86
00:07:35,000 --> 00:07:48,000
It is, let's say one 50kg and on the earth and the minimum weight is let's say three kilograms or two

87
00:07:48,000 --> 00:07:56,000
kg not to let's say one kg because newborn baby weight is around one kilogram.

88
00:07:56,000 --> 00:07:57,000
Okay.

89
00:07:57,000 --> 00:08:05,000
So now I just take a indicator over here.

90
00:08:06,000 --> 00:08:09,000
Create a indicator for this.

91
00:08:11,000 --> 00:08:14,000
As you see I got the indicator.

92
00:08:14,000 --> 00:08:16,000
This is my indicator.

93
00:08:17,000 --> 00:08:23,000
Just drag it on the earth minimize it a little bit.

94
00:08:23,000 --> 00:08:26,000
Now set the font over here.

95
00:08:26,000 --> 00:08:34,000
You just set the font size style and justify it to the center.

96
00:08:34,000 --> 00:08:40,000
As you see just change the label.

97
00:08:40,000 --> 00:08:42,000
You just see this one.

98
00:08:42,000 --> 00:08:48,000
Now I just make it for moon only because I know that from the table.

99
00:08:48,000 --> 00:08:53,000
The multiplying factor with this particular over here it is the earth.

100
00:08:54,000 --> 00:09:01,000
Okay, so now I create another indicator for the moon.

101
00:09:02,000 --> 00:09:11,000
And the factor is what 0.166 okay.

102
00:09:11,000 --> 00:09:14,000
So now go to the moon indicator.

103
00:09:15,000 --> 00:09:17,000
Drag it over the moon.

104
00:09:19,000 --> 00:09:23,000
Just change the size.

105
00:09:23,000 --> 00:09:28,000
Just change the style.

106
00:09:30,000 --> 00:09:32,000
And justify it.

107
00:09:33,000 --> 00:09:36,000
So right now I just remove the label.

108
00:09:36,000 --> 00:09:41,000
Also just put over the this factor.

109
00:09:42,000 --> 00:09:48,000
So now my code is ready I just put delay over here.

110
00:09:49,000 --> 00:09:58,000
So in this particular program I just check for only now the five seconds delay is there.

111
00:09:58,000 --> 00:10:00,000
Check for only two planets.

112
00:10:00,000 --> 00:10:02,000
Create control over here to stop it.

113
00:10:03,000 --> 00:10:04,000
So this is my.

114
00:10:04,000 --> 00:10:05,000
Stop button.

115
00:10:06,000 --> 00:10:07,000
Remove label.

116
00:10:08,000 --> 00:10:11,000
Just play stop button over here.

117
00:10:11,000 --> 00:10:14,000
Run it as you see on Earth.

118
00:10:14,000 --> 00:10:16,000
It is 49 on the moon.

119
00:10:16,000 --> 00:10:18,000
It is 8.2kg.

120
00:10:18,000 --> 00:10:19,000
Nearly so.

121
00:10:19,000 --> 00:10:24,000
This is how we can create different projects using LabVIEW.

122
00:10:24,000 --> 00:10:32,000
This is a project related to Science Museum or the weight on different planets.

123
00:10:32,000 --> 00:10:37,000
We can also display it on Science Museum also.

124
00:10:37,000 --> 00:10:40,000
Okay so this is all about today's lecture.

125
00:10:40,000 --> 00:10:41,000
Thank you.

