LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate the distance froma starting point using a gps sensor

I would like one fo the loops of this program in scuh a way that I give  the start coordinates and it calculates for me, how
far I am from the starting point itself. So if I move towards thestarting point it should reduce the distance and of I walk away from it,
it should increase the distance. the result should be visible on the odometer.

At the moment this loop, this disctance is only increasing even when you move towards the starting pint.

Download All
0 Kudos
Message 1 of 4
(2,732 Views)

Hi shivik,

 

I would like one fo the loops of this program in scuh a way that I give  the start coordinates and it calculates for me, how far I am from the starting point itself.

Right now you are able to calculate a distance between two GPS coordinates inside of this case structure shown in your image.

So what's the problem to calculate the distance between a fixed start point and the current GPS data?

 

At the moment this loop, this disctance is only increasing even when you move towards the starting pint.

Then all you need to do is to remove this behavior from your VI!!!

 

When you have problems to understand your own VI then I suggest to take the free beginner courses offered for free here or in the header of the LabVIEW board!

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,719 Views)

No, this VI has ot been created by me. I found it in some other program. I am a beginner in labVIEW, so sill needs a lot of time to understand things

0 Kudos
Message 3 of 4
(2,706 Views)

Hi Shivik,

 

I am a beginner in labVIEW, so sill needs a lot of time to understand things

Take your time to go through those LabVIEW basics!

Then apply those basics to this VI to understand what's going on in there. Also basic debugging like "Highlight execution" will help you on this way!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,702 Views)