LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected result when saving image of front panel in EXE

Solved!
Go to solution

Below code is used to save an image of the front panel of a VI. The front panel shows an XY graph with two plots.

 

Save front panel.png

 

This works perfectly in the development environement. With the EXE, the plots of the graph (only the plots) are invisible.

 

Have you already encountered this unexpected behaviour ? Many thanks for any advice.

 

0 Kudos
Message 1 of 6
(3,060 Views)

Example.jpg

 

I have already tried several things like Defer Front Panel Updates... Nothing helped !

0 Kudos
Message 2 of 6
(3,038 Views)

JB,

 

A few things may be messing you up. 

 

When you build the EXE, the path that is created for the "Current Vi's Path" probably won't be where you want it.  I would use "Application Directory" or "Default Data Directory".  These path things have messed me up a few times when creating a EXE.

 

Also is the data on your graph being generated before you are running the section of code in your picture?  I assume it is since you state that it is working in the development environment.

 

What version of LV are you using?

 

Joe

0 Kudos
Message 3 of 6
(3,014 Views)

Problem solved.

It was a "too stupid to be mentioned here" error of mine. Things that can happen at the end of a (too) long day.

 

If someone knows how to avoid the grey areas on the right and bottom of the picture, I'm still interested.

It appears only when the "visible area only ?" option is set to TRUE.

0 Kudos
Message 4 of 6
(2,985 Views)
Solution
Accepted by topic author JB

@JB wrote:

Problem solved.

It was a "too stupid to be mentioned here" error of mine. Things that can happen at the end of a (too) long day.

 

If someone knows how to avoid the grey areas on the right and bottom of the picture, I'm still interested.

It appears only when the "visible area only ?" option is set to TRUE.


I didn't try it but I would suggest you try setting the horizontal and vertical scrollbars to always off.

 

Ben64

Message 5 of 6
(2,964 Views)

ben64 a écrit :
I didn't try it but I would suggest you try setting the horizontal and vertical scrollbars to always off.
Ben64

Good catch ! Many thanks.


I forgot to hide the scrollbars in the Source File Settings of the Application Builder.

 

0 Kudos
Message 6 of 6
(2,914 Views)