11-27-2014 12:59 PM
Hello,
I created a menu with different buttons. Each button, when pressed, will open a new VI. This works perfectly on my PC until I work inside the project.
When I make the EXE file on another machine, all the paths to the files are no longer valid, of course.
I was wondering, is there a way for solve this problem? Wherever I will open the application I would like the button to open the correct VI, without specify the correct path each time on each machine.
Currently I specify the path manually:
Solved! Go to Solution.
11-27-2014 02:29 PM
11-28-2014 12:32 AM
Hello Yamaeda,
I don't understand, what do you mean by drop the vi in the calling function?
I used this method because I saw it on a online tutorial, but is probably better the one you suggest. I just would like to open the correct VI indipendently on which PC I will run the application.
Regards
11-28-2014 08:16 PM
You are using VI Server to call a VI, and are waiting until the VI closes to continuue. Take the VI and drop it onto your Block Diagram. It should have Error In and Error Out terminals on the lower corners. Instead of the VI Server calls, simply wire the VI itself into the error line. This links the sub-VI with its calling VI, without your needing to know its path (when you plunk it down on the Block Diagram, you "find" it by looking it up by its path).
BS
11-28-2014 08:22 PM
11-29-2014 07:42 PM
@simo28 wrote:
Hello Yamaeda,
I don't understand, what do you mean by drop the vi in the calling function?
I used this method because I saw it on a online tutorial, but is probably better the one you suggest. I just would like to open the correct VI indipendently on which PC I will run the application.
Regards
Instead of calling the path to Heart rate monitor.vi, drag the file from Explorer and drop it in the other vi.
See the attached files.
/Y
12-01-2014 02:08 AM
Thank you for your help!