LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Code 1003 when running exe - need help

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

 

EatonCooper_1-1672909114957.png

 

0 Kudos
Message 1 of 4
(850 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(844 Views)

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

0 Kudos
Message 3 of 4
(833 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(826 Views)