Hello, friends.
Today I just show you how to calculate weight on different planets in our solar system.
As you see over here, we have different planets like sun, Mercury, Venus, Earth, moon, Mars,
Jupiter, Saturn, Uranus, Neptune.
So I just create a LabVIEW program to calculate the weight on different planets.
In this case, as you see, I just use a picture that I take it from Science North's dot org.
As you see, this is the actual picture.
I just import this picture inside the LabVIEW.
I just show you how I just do it.
So you can use this VI or this project in your science projects.
Or you can also use in Science museum okay or in your space application if you want to check weight
on different planets.
So right now I just show you the demo when I just run it.
As you see if the person's weight on earth is 66 or 46, I just put a delay of five seconds inside it.
You can check the weight if the weight on earth is 78, weight on moon is 12, nearly 12kg.
Okay, these data is in kilograms okay, so I just use these multiplying factor.
As you see, the gravity vector for every planet is different.
Let's say for the Earth it is one.
For the moon is 0.166.
This is the multiplying factor I just use to calculate the weight on different planets.
And I have also a example.
Let's say the surface gravity of planet or other body is what determine your weight.
Because we know that weight is m into g, m is the mass and g is the acceleration due to gravity.
It is different for every planet.
It is in meter per second square.
For example, Earth gravity is 9.8m/s, and for a person with a small weight of 64kg, the weight will
be 64 into 9.8.
That is in Newton.
627 Newton, if you want to calculate it, is in weight.
In kilograms, you just divide it by 9.8 because one is equal to equivalent to 9.8 newtons.
So nearly 64kg is the weight of the person on the earth.
Or because right now Earth gravity is used.
So weight on the Earth.
If you want to calculate in UK standard it is in pound.
So 9.8 Newton equal to £2.2.
So the weight of the person is £140.
You can calculate the weight according to this calculation.
Just produce different gravity of like Mercury, Mars, moon, Titan, Pluto etcetera.
You just fill it for your project.
Okay, so over here I just show you how.
I just drag this picture inside the lab view and I just create how I create this case.
So I just show you first the particular code for this case.
Right now I just create a demo because if you have a waiting machine you just replace this part, this
part and just produce, just acquire the data from the waiting machine and connect it over here.
It will show you the real time data of your weight.
Okay.
So over here this is my while loop.
As you see this is my iteration.
It will start from zero and goes up to infinity until I just stop it okay.
So over here this is a boolean button.
This is the delay five second delay is there.
It is up to you.
So right now I just use a demo.
In this case random number will produce 10 to 100 between values between 10 to 100.
The the values are in floating as you see the.
Here we have orange color.
So let's say for the Earth I just use directly the weight represent inside this indicator.
And if you want to check over the moon, as you see I just multiply this factor with 0.166 and I got
the moon value.
Okay.
So this is how you can calculate.
So I just place it over here.
So right now again when I hit on run button, as you see for the five seconds the weight remains same.
After that it will change.
Okay.
So this is how you can create science project for your different exhibitions.
So now I just show you how I just do it.
I just take the example of one only.
So I just go to new VI Ctrl T over here.
I just need to import the picture.
So for that purpose just go to Import Picture to Clipboard.
And over here on the desktop I have different pictures like this.
Just drag it then go to edit paste it.
As you see my picture is available over here.
Right now it is a fixed picture.
Okay.
So I just need to minimize it a little bit because it goes out of the dashboard.
So make it over here.
Now I just go to the programming window.
That is my block diagram window over here.
Just create a while loop.
Then just go to Numeric Palette over here I just use this random number.
In this case you just change it to double because it is for floating values.
Set the value.
Let's say the maximum weight is 200, not 200.
It is, let's say one 50kg and on the earth and the minimum weight is let's say three kilograms or two
kg not to let's say one kg because newborn baby weight is around one kilogram.
Okay.
So now I just take a indicator over here.
Create a indicator for this.
As you see I got the indicator.
This is my indicator.
Just drag it on the earth minimize it a little bit.
Now set the font over here.
You just set the font size style and justify it to the center.
As you see just change the label.
You just see this one.
Now I just make it for moon only because I know that from the table.
The multiplying factor with this particular over here it is the earth.
Okay, so now I create another indicator for the moon.
And the factor is what 0.166 okay.
So now go to the moon indicator.
Drag it over the moon.
Just change the size.
Just change the style.
And justify it.
So right now I just remove the label.
Also just put over the this factor.
So now my code is ready I just put delay over here.
So in this particular program I just check for only now the five seconds delay is there.
Check for only two planets.
Create control over here to stop it.
So this is my.
Stop button.
Remove label.
Just play stop button over here.
Run it as you see on Earth.
It is 49 on the moon.
It is 8.2kg.
Nearly so.
This is how we can create different projects using LabVIEW.
This is a project related to Science Museum or the weight on different planets.
We can also display it on Science Museum also.
Okay so this is all about today's lecture.
Thank you.