LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stamp GPS time alongside DAQ data


@Emad_NRIAG  a écrit :

Thank you for your cooperation. As I understand from your comment that it's better to integrate the DAQ and GPS in the same loop, isn't it ?

What's the abbreviation of FGV ?


In some cases it is better yes. As always it is linked to your architecture.

IMHO I would use FGV but I have no idea what your code is doing in parrallel of this action.

 

FGV :

https://learn-cf.ni.com/teach/riodevguide/code/rt_functional-global-variable.html

0 Kudos
Message 11 of 15
(580 Views)

I tried to take all the mentioned comments into consideration. Please, have a look for any further modifications to optimize the operation. 

 

Kindly, find the attached VI for the final project code.

 

0 Kudos
Message 12 of 15
(579 Views)

Sorry but that is spaghetti code.

You have some work to do before anybody could understand this.

 

In case it is working it's fine but I doubt that anybody here will take some time to uncypher it.

0 Kudos
Message 13 of 15
(570 Views)

Hi Emad,

 


@Emad_NRIAG wrote:

Kindly, find the attached VI for the final project code.


This surely is not "final code"!

 

When the navigation window looks like this:

then you really need to improve your coding style!

Right now the block diagram is way larger than the usual FullHD screen (as indicated by the white background color in the window)!

 

Create a project folder.

Create subVIs.

Cleanup the block diagram!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 15
(544 Views)

Thank you Mr. GerdW for your comments. 

 

I started organizing the code by creating a subVIs. Regarding to,the GPS gather VI: 

 

https://forums.ni.com/t5/Example-Code/GPS-gather/ta-p/3494576

 

I import the GPS GATHER in my code and wire the input and output wires. 

 

Emad_NRIAG_0-1666092275591.png

 

However, I can't extract the needed GPS data in my project.

 

I noticed that that function (GPS GATHER) executed internally (locally). Will I need to convert the output variable in the subVI (GPS GATHER) to global rather than local. Please, give your suggestion to solve this problem.

0 Kudos
Message 15 of 15
(486 Views)