LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem capturing the front panel image in executable form

Hi

I am in need of some urgent help.

The problem is that in my source code, at the end of the testing, I take a picture of the front panel and save it as an image and also print it on the printer. While everything works in the LabVIEW mode as intended, the problem occurs when I build the executable. In the executable, the image it saves in the image file is missing. The printing part works though, but the imgae file looks like as attached.

 

I am also attaching the subVI that captures/prints the image of the main VIs front panel.

 

I am using LabVIEW 8.6 and Microsoft .net ver 3.5 SP1

 

Thanks.

jeet

Download All
0 Kudos
Message 1 of 6
(3,187 Views)

You should get the image the same way you are doing the print - by using the reference you are passing into the subVI.

 

p.s. Get rid of the sequence structure. It does nothing except hide your code. You've got error clusters that can be used instead.

Message 2 of 6
(3,168 Views)

Hi Dennis

 

Thanks for the response. The problem is that if  I input the the VI reference to the invoke node and use the FP.Getimage method,

then the executable crashes at that point where the invoke node is executed. To fix this i came up with this alternative method

that you saw in my attached VI.

 

- jeet

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

Jeet,

If you always want it to print the front panel when it finishes executing, you could select Print on Completion from the Operate menu. 

I hope this helps. 

 

-Christina

0 Kudos
Message 4 of 6
(3,115 Views)

(NOTE : one cycle of sinwave have 100 sample if have 2 cycle then it would be 200 sample)

 

my question is how to detect that sample value and put into array????


 

0 Kudos
Message 5 of 6
(3,041 Views)
Your question makes no sense in the context of this thread. I'm not sure it makes much sense anyway but I'm sure you posted to the wrong place.
0 Kudos
Message 6 of 6
(3,036 Views)