01-05-2023 03:00 AM
Hi,
Have a VI that I run and the below code executes and calls the sub vi but when I build it as an executable I get an error message 1003, can anyone help? It is part of a bigger VI but this is the only part that is failing.
I have included the sub VI in my exe build as "always include" and the sub VI is in the same directory as the main VI that calls it.
Regards
Martin
01-05-2023 03:19 AM
Hi Eaton,
@EatonCooper wrote:
I have included the sub VI in my exe build as "always include" and the sub VI is in the same directory as the main VI that calls it.
Why do you call the VI located in that "Andon" folder instead of the VI located in your executable?
(That folder should probably named "Addon"!? 😄 )
Does that VI reference any dependencies? Does your executable know about those?
Why don't you call the subVI by placing it in your block diagram? Do you really need to use VIServer to call it?
01-05-2023 03:45 AM
Hi GerdW,
I am calling the sub VI this way as it basically plays a sound every 15 seconds until it is closed by the user and therefore I loose functionality in the main VI as it is waiting for the sub VI to finish.
Why do you call the VI located in that "Andon" folder instead of the VI located in your executable?
(That folder should probably named "Addon"!? 😄 )
Not sure I understand the question here sorry?
Does that VI reference any dependencies? Does your executable know about those?
Why don't you call the subVI by placing it in your block diagram? Do you really need to use VIServer to call it?
I think the only dependency is related to playing the sound and when I look in the project dependencies the "play sound" is in there? Like I said the project lists the sub VI in always include?
Thanks for the help.
Regards
Martin
01-05-2023 04:20 AM
Hi Eaton,
@EatonCooper wrote:
I am calling the sub VI this way as it basically plays a sound every 15 seconds until it is closed by the user and therefore I loose functionality in the main VI as it is waiting for the sub VI to finish.
It will only block the main VI when you don't call that subVI in a loop running in parallel…