LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

picture labview

Solved!
Go to solution

 

   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 

0 Kudos
Message 1 of 10
(4,634 Views)

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,

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 10
(4,627 Views)

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

0 Kudos
Message 3 of 10
(4,613 Views)

How are you generating the path? Are you adjusting for the fact that path's in an exe are different than in development mode?

0 Kudos
Message 4 of 10
(4,602 Views)

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. 

0 Kudos
Message 5 of 10
(4,566 Views)

try somethign like this. Replace "YOURAPP" with whatever the name of your application is.

0 Kudos
Message 6 of 10
(4,555 Views)

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.  

0 Kudos
Message 7 of 10
(4,533 Views)

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.

Message 8 of 10
(4,528 Views)
Solution
Accepted by topic author pepistomas

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.

0 Kudos
Message 9 of 10
(4,519 Views)

thx for help 

 

best regard

 

tom

0 Kudos
Message 10 of 10
(4,455 Views)