03-10-2025 12:56 PM
My RTEXE builds are having Application Directory return a path WITHIN the rtexe instead of the folder containing the rtexe (presumably it's not recognizing being built into an app and is instead returning the folder containing the top-level VI?)
Has anyone else seen this? Is this somehow expected behavior?
03-10-2025 12:59 PM
I am resorting to this to get my expected behavior:
03-10-2025 05:40 PM
I don't have experience with real-time, but I ran into a similar problem when I used LabVIEW to build a DLL. I wanted to use "Application Directory" to get a path to the DLL, but it gave the path to whatever had loaded the DLL (could be python.exe for example). I ended up using "VI Path" and stripping the path to the DLL location.
All this to say, I think continuing with your work around is the best thing to do.
03-11-2025 12:34 AM
I should say that this has changed behavior across builds. Used to work fine.
Your DLL usage is entirely expected; it says it will point that the path of the executable... not DLL.
03-11-2025 02:02 AM
I have an rtexe developed in LabVIEW 2021 where I am using a very similar workaround to get the application folder. 2020 behaved the same if I remember correctly. Not that I expect this behaviour, but it seems to be consistent, at least.