LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can anyone help to build .exe with the picture inclusive

need build .exe with the picture included.  Can anyone help? Thank you 😃
0 Kudos
Message 1 of 8
(3,613 Views)
Remove the part of the code where you load the picture and right it to the control so that it doesn't overwrite your picture indicator when your .exe actually runs.  If it can't find the image file, you'll get and error and the picture will become blank again.
0 Kudos
Message 2 of 8
(3,602 Views)

You are also using the Current VI Path. You are stripping the path twice, but is that because the picture is actually two directories up, or are you dealing with the extra "directory" for executables?

 

You are also performing equality operations inside your formula node on calculated numbers. Presumably you are aware of the dangers of doing so with floating point numbers and computers? If not, please be ready to contribute to my retirement fund.

0 Kudos
Message 3 of 8
(3,593 Views)
Is there a practical way ,  a solution?
0 Kudos
Message 4 of 8
(3,586 Views)

charles0601 wrote:
Is there a practical way ,  a solution?

A practical way or solution to what?

 

Who are you replying to?  Where are you still having problems?

 

Remove the file reading code, and your program won't try to read a file and overwrite the pictuer you have saved as default with nothing.  Which answers your question "need build .exe with the picture included".  Your picture is already included in the .exe, you just need to make sure you don't overwrite it.

Message 5 of 8
(3,581 Views)
Also, instead of using a picture indicator you could use one of the graph's plot images
Message 6 of 8
(3,578 Views)

thank you guys...  with your help.  Another problem is that how can i make the .exe run on the computer without Labview?

0 Kudos
Message 7 of 8
(3,559 Views)
You need to install the runtime engine on the other computers.  You can download it from NI.com.  You can also have it built into the application's installer so that you can install your .exe and also have it install the runtime engine.
0 Kudos
Message 8 of 8
(3,535 Views)