LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I save within an application a frontpanel from a not shown VI as picture

I would like to save a not shown front panel as picture within an application.
The VI I have created works fine if LabView is installed, but if I make an executable file, the saving doesn’t work!
Who knows a well working solution or can tell me how I can fix this bug?
Thanks,
Jabi
0 Kudos
Message 1 of 3
(2,713 Views)
First, check your build settings for the subVI. Front panels of subVIs are normally deleted when you build an app. I'm assuming that you're using the GetPanelImage method. If there's no front panel, the method will fail. Click the VI Settings tab, and look at the settings for the subVI. You can choose to keep the front panel by clicking the Edit Build Settings. Second, how are you referencing the subVI? Paths to a subVI are different when you do a build. For example, if in development mode you refer to c:\folder\subVI.vi, when built, the path becomes c:\folder\main.exe\subVI.vi.
Message 2 of 3
(2,704 Views)
Hi Dennis,

thanks for the very useful tip! If have used the wrong method (Write To Html) and changed it now to GetPanelImage. Now my application is running well!

Thanks a lot and best regards,
Jabi
0 Kudos
Message 3 of 3
(2,690 Views)