Jump to content

open VI ref run VI error


Ive

Recommended Posts

Posted

I have a piece of code that calls and runs VI by opening the VI reference. It can be executed normally before being packaged as exe, but it will report an error after packaging. May I ask if you can help me solve this problem?

TESTX.zip

Posted (edited)

Your build specification didn't have a startup VI selected, so I worked with what you provided. 

My assumption is that the error you're seeing is represented below?

image.png.fe8545a1094300cbcea7fb2a79996d07.png

"Excute Process Driver.vi" in your "timerA.lvclass" for some reason is being required to have the front panel available once built into an EXE.  I haven't had the change to really investigate why. 

I found something interesting when I built your application with Debug enabled to troubleshoot.  With debug enabled, the EXE executes without error. 

So then, I went into the build spec and disabled debugging, and then un-checked "Remove front panel" for the troublesome VI, recompiled the EXE and again, no issues :

image.png.54a44e3f72ef6016e55c47f77a734c4a.png

This is at least a workaround if it's something that's holding you up.  I currently don't have the time to find the root cause, but someone else can take over if they want as I have to start my work day.  Knowing myself the way I do, it may be something glaringly obvious that my coffee-lacking brain couldn't pick up on this early in my day.

I hope this helps!

Edited by Bryan
Not enough coffee to form coherent sentences.

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.