07-05-2020 10:19 AM
Can I ask for some newbie advice on how to structure folders for an application build? Yep, I need to set up relative paths for config files and such, I get that. But what about *.lvclass files, and all those pesky identically named class method vi's? I'm guessing that I'll need to build an installer, not just an application, because I'm guessing there'll need to be a folder structure that allows for all those same-named vi's, right?
Also, how do VI Server strictly typed vi's work with the build process? Specifically, I have some asynchronous-run vi's. In the development environment, we create strictly typed references by navigating to their vi files. But what happens when the builder encounters those vi references?
As you can tell, I'm a newb when it comes to building applications of any sophistication, so I'd sure appreciate any tips - thanks, and stay healthy! paul
Solved! Go to Solution.
07-06-2020
12:43 AM
- last edited on
05-08-2025
12:40 PM
by
Content Cleaner
Hi PaulOfElora,
This can achieved in may ways at the application level itself.For that you need to know certain things such run-time environment and relative paths.
One important thing is the source files referenced by the source file in any application.exe will be <path to application.exe>\SourceFile.vi .You can refer this link "https://www.ni.com/docs/en-US/bundle/labview/page/referencing-source-files-in-stand-alone-applicatio..." for more understanding of relative paths.
Same logic is applied to all class files and corresponding methods.As per the best practices,you need to save the individual classes and its methods in seperate folders and those can be referenced again like i mentioned above.
07-06-2020 01:10 AM
To add to the stuff in the previous reply:
07-06-2020 06:58 AM
@tst wrote:
unless you're working with something like a plugin architecture, which has some different considerations.
At which point we need to start talking about separate project files, building libraries into Packed Project Libraries (PPLs), and properly distributing said PPLs for your main application development as well as deployment. It has a steep learning curve, but very useful once you get over that hump.
07-06-2020 09:09 AM
Fantastic, thanks so much guys! I really couldn't do this work without all your kind help - paul