From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open VI Reference source code is ok,but in exe not work

Solved!
Go to solution

I use Open VI Reference in my source code is ok,but when I build EXE,it do not work,and show error.

What is the problem?

2018 64 bit

 

Here is the source code

AAA0818_1-1620705513113.png

 

here is the error from the EXE:

AAA0818_0-1620705290951.png

 

0 Kudos
Message 1 of 5
(994 Views)

VI's built into an executable have an extra level in their path definition.  I think that is what is happening to you.

 

Read https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019NFfSAM&l=en-US

 

0 Kudos
Message 2 of 5
(958 Views)

Thank you for your advise,but in my program I open the VI Reference by vi path,i do not use current vi path or other path.Just like this.It is a absolute path

AAA0818_0-1620712847251.png

 

0 Kudos
Message 3 of 5
(943 Views)

Hi AAA,

 

the error message mentions an "unexpected filetype": do you really try to open a reference of a VI file?

Can you attach that "untitled 333.vi" file?

 

(Btw. I hope you use some more descriptive filenames in your source code development…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(929 Views)
Solution
Accepted by topic author AAA0818

thanks for everyone:

the problem is find:

1,error:"unexpected filetype" may be my computor installed encrpytion software

2,In my program i uesd the  “Lock State:Set Methord”,However it do not available in the Run-Time-Engine.

 
 

企业微信截图_16207135058073.png

0 Kudos
Message 5 of 5
(916 Views)