Jump to content
廉怡仪

error1003 open vi reference fail

Recommended Posts

I created a subvi(vi_01) with "single error handler.vi";

Interface.vi load this subvi directly, interface02.vi load the subvi by reference, both programs work in debug mode;

I built executables for both programs, interface.exe works properly, interface02.exe not works properly(error code =1003);

 

I tried methods mentioned in the link below, but I couldn't fix the problem

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PAq8SAG&l=zh-CN

 

The attachment is my program(LabView2018 32bits).

debug.zip

Share this post


Link to post
Share on other sites

You are calling Open VI Reference using a path that points to your hard drive (D:\DEBUG\debug\vi_01.vi). That VI is not inside your executable. It is possible to make this work, but your executable will break if you move the VI on your hard drive.

It is safer to open a strictly-typed Static VI Reference. This loads a copy of Vi_01.vi is stored inside the executable itself:

1782958079_StaticVIRef.png.11411a76084a384d3fcf8a320d26cafc.png

For more info, see

  • Thanks 1

Share this post


Link to post
Share on other sites
19 hours ago, JKSH said:

You are calling Open VI Reference using a path that points to your hard drive (D:\DEBUG\debug\vi_01.vi). That VI is not inside your executable. It is possible to make this work, but your executable will break if you move the VI on your hard drive.

It is safer to open a strictly-typed Static VI Reference. This loads a copy of Vi_01.vi is stored inside the executable itself:

1782958079_StaticVIRef.png.11411a76084a384d3fcf8a320d26cafc.png

For more info, see

I have modified the program according to your suggestion, it can work properly, thank you very much
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.