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: 

Why are pictures showing up in my VI, but not in the build .exe

Solved!
Go to solution

I have a vi that changes a picture based on control inputs.  It works in vi exactly as I like.

When I made it into an app, when I built it, the pictures do not display.

 

I'm not sure how to help you help me.  Can you point me in the right direction?

Is there a build-configuration that I need to show?

 

fwiw: I am using LabVIEW 2017 on Windows 7.

 

Thanks.

Engr Student.

0 Kudos
Message 1 of 11
(3,591 Views)
Solution
Accepted by topic author EngrStudent

How do you read in the pictures? Are they included as separate files? If you have an exe, some relative paths change and they might not be found. (details)

Message 2 of 11
(3,575 Views)

Per the KB article I changed to "application directory" and it now works in the compiled version and not in the vi.

It is progress. 

 

Thank you, Altenbach.

0 Kudos
Message 3 of 11
(3,563 Views)

@EngrStudent wrote:

Per the KB article I changed to "application directory" and it now works in the compiled version and not in the vi.

It is progress.


Move your image files to be relative to your project file and it will all be fine.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 11
(3,557 Views)

If you read the Help for Application Directory, you'll see that the paths are different (but logical) for a built Application and for the Development Environment.  For the Application, the Application Directory refers to the path to the folder containing the Application.  For the Development Environment, it refers to the path to the folder containing the LabVIEW Project File (.lvproj).

 

Bob Schor

Message 5 of 11
(3,556 Views)

I wish there was a case that I could set up to determine whether this was the in-development vi or the built-application.  I could then put directories there. 

 

When I build, the directories are assembled per the build instructions. 

 

Even crazier, when I make an installer, the built directories are put in the program files (and such) per the installer setup. 

 

How do I test that, as an installed application, it acts like it should.  The US Army says "train like you should fight, because you will fight as you were trained".  I wish there were a non-hack, non-manual way to do that in the process of building standalone applications in LabVIEW.

0 Kudos
Message 6 of 11
(3,483 Views)

Hi Engr,

 

there's a property node telling you in which einvironment your VI is running.

You can even use a "conditional disable"-structure…

 

When I build, the directories are assembled per the build instructions. 

Even crazier, when I make an installer, the built directories are put in the program files (and such) per the installer setup. 

So everything is done as YOU have configured it!? What's "crazy" about that?

 

How do I test that, as an installed application, it acts like it should.

By doing some testing and debugging!? Error logging is a good idea, too.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 11
(3,479 Views)

GerdW,

 

Can you show me a snippet??  This is neat.  I needed to know that.

 

-EngrStudent

0 Kudos
Message 8 of 11
(3,474 Views)
Solution
Accepted by topic author EngrStudent

Here's the property node for that:

image01.png

Regards, Jens

Kudos are welcome...
Message 9 of 11
(3,469 Views)

Arms in the air, saying yes(!) out loud.

 

Thank you.

Message 10 of 11
(3,464 Views)