10-04-2022 07:32 AM
@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
10-04-2022 07:38 AM - edited 10-04-2022 07:52 AM
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.
10-04-2022 08:17 AM
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.
10-04-2022 09:58 AM - edited 10-04-2022 09:59 AM
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!
10-18-2022 06:42 AM
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.
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.