LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Take a picture of a sub vi with a not opend frontpanel

Hello,
 
I try to take a picture of a frontpanel.
This works fine if the Frontpanel is opend.
But this shall appear in a sub vi and I dont want to open the frontpanel of that sub vi.
So I get, with the frontpanel closed, only a picture without values and other mistakes.
How can I manage this?
Thans for yopur help!
 
Regards
Christian
0 Kudos
Message 1 of 12
(3,791 Views)
Have you tried the Get Panel Image method? You can take the result and save it to a JPG or BMP file.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 12
(3,784 Views)
Yes, with this method i get the picture.
If the frontpanel is open, its fine.
But if the frontpanel is not opend, it is garblet.
And I dont want the frontpanel to pop up while running this sub vi.
 
Thanks for help!
 
Regards
Christian
 
0 Kudos
Message 3 of 12
(3,782 Views)
"But if the frontpanel is not opend, it is garblet."
 
What version of LV?
 
Could you post screen shots of the good and bad versions?
 
Ben
 
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 12
(3,772 Views)
In additon to Ben's request, I'd like to see exactly how you are using the get image method.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 12
(3,772 Views)
Im using the latest version of LV, LV 8.2.
 
The Attachement "getpic" is how I get the picture.
"emailpicgood" is what I get with open frontpanel.
"emailpicbad" is what I get with closed frondpanel (bad picture).
 
Regards
Christian

Message Edited by DrBigred on 06-13-2007 08:34 AM

Download All
0 Kudos
Message 6 of 12
(3,763 Views)

LV 8.2.1 is now available.

Could you try a quick test?

Try doing an invoke node "Get Image" for just one of the controls prior to doing the "Get image" of the panels to see if that helps.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 12
(3,757 Views)
One other thing to check: If there is not one there already try putting a property node for a front panel control on the block diagram of the VI that you are getting the image of. There is a very old bug that keeps poppingup from time to time that the front panel is not displayed or updated properly if its not loaded into memory. Putting a property node on the block diagram forces LV to load front panels into memory, even if they aren't displayed.

The property node doesn't have to do anything useful. For example, it could set a control that's already visible to be visible, or enable a control that's already enabled.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 12
(3,753 Views)

 

Place the two vi's in a  folder and run Image.vi

I got the above images

Download All
0 Kudos
Message 9 of 12
(3,750 Views)

@mikeporter: I aleready do changes in the frontpanel before making the picture.

@Ben: Sorry I did not get what you talking. Could you please explain for poor english dummies?

Thanks!

Christian

0 Kudos
Message 10 of 12
(3,749 Views)