09-09-2010 09:36 AM
hi evryone,
Im a beginner with Labview Do you know i can see a picture in my executable file. In normal VI I see him but when I debug it it is lost. Ive tried to find some information about this problem but Ive found nothing. Can you help me smb. ?
thx tom
Solved! Go to Solution.
09-09-2010 09:41 AM
Please explain what you mean by "a picture in my executable file"? In particular what are you seeing in a "normal VI", and what aren't you seeing when you debug. Please describe this a little more,
Thank you,
09-09-2010 09:55 AM
Hi,
I have normal VI with a code. Everything is OK but I would like make classic application (exe). Unfortunately When I build application a picture is not in fron panel in exe file. I know that problem is in path of file, but i dont know how i could solve it.
thx tomas
09-09-2010 10:15 AM
How are you generating the path? Are you adjusting for the fact that path's in an exe are different than in development mode?
09-10-2010 09:28 AM
first of all i would say thx for your endeavor. I tried the procedure acording to http://digital.ni.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363 but it was without succes. the wrong segment of my code is In the attachement. Could you tell me what i do wrong? one again I would like say sorry for so stupid question.
thx tomas.
09-10-2010 09:56 AM - edited 09-10-2010 09:57 AM
try somethign like this. Replace "YOURAPP" with whatever the name of your application is.
09-10-2010 10:33 AM
thx,
i did it, but still when i run the application on another pc there is not displayed a picture, but it shows a empty case.
09-10-2010 10:42 AM
Wire up the error out of the read jpeg function to an indicator. You need proper error handling to see what the problem is. You have a fixed path which is generally a bad idea but verify this other pc actually has an E: drive and that the jpg file resides there.
09-10-2010 11:06 AM
Dennis is right, you should be using the "this VIs path" primative and modifying the path in relation to your VI to insure it works no matter where the application is run.
09-14-2010 11:05 AM
thx for help
best regard
tom