03-29-2018 02:11 PM
In the attachment you will find the paths.vi
03-29-2018 02:14 PM - edited 03-29-2018 02:22 PM
I am not seeing that the paths.vi is creating a path for the CRCCOL Calibration global.ini
Is that right?
should I add this to my vi?
03-29-2018 02:54 PM
You are right, Paths.vi doesn't add the .ini.
CRCCOL Shunt Calibration Global.vi, gets the configuration folder path and then adds CRCCOL SHUNT Calibration %d.ini. My guess is that, in Paths.vi you are not getting the right Configuration Path set.
Can you add some indicators on the path flow to check what is coming out.
Otherwise, you have a different path on your first and last screen. Do you happen to have the problem with an .exe and not directly in LabVIEW ?
03-29-2018 03:05 PM
after I added the question I did add an indicator and the path created was correct in the in CRCCOL calibration global.vi.
The thing that is confusing me is that with the executable file that I got from the supplier has no problem with these VI's. everything was running correctly expect the DMM VISA so I changed only the destination global for the DMM and tried to built a new version and from there I started to have this issue
03-29-2018 03:10 PM - edited 03-29-2018 03:10 PM
There's something funky about paths if they are coded explicitly (as you seem to be doing), namely that there's a slightly different Path if you are in Development vs Execution (i.e. a built Application) Mode. I tend to use Property Nodes of Static VI References to the VI I want to specify, as this works the same for both Development and Execution modes (saving my dwindling Brain Power).
Bob Schor
03-29-2018 03:17 PM
I mean if you run the main VI in the development mode no error will show
but after building the excitable and the application and try to run the application I will have this error
03-29-2018 03:24 PM
That's is what Bob is trying to explain : Current VI's Path is different in execution and development.
More about it : https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019NFfSAM
It's more than likely that you error comes from the way the path is created in Paths.vi 😉
03-29-2018 03:38 PM
ok so is that the same thing that they have been used in my application
03-29-2018 03:42 PM
From what I see, you used the VI path, not the application folder one.
If you need to know what a VI does, you can use the context help by pressing CTRL + H.
03-29-2018 04:24 PM - edited 03-29-2018 04:25 PM
Hi,
Did you include all dependent files with expected location when you create application?
Thanks,
Sanad MM