LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

? command to do a print-screen from LabVIEW?

Is there a way to do a print-screen (usually done with control-printscreen from the keyboard) using a command from within labview.
 
I have a customer of our product that finds it useful to do a print screen of the test panel.  I'd like a way to automate it.
 
 
0 Kudos
Message 1 of 13
(10,192 Views)

vi methods -> Print.PanelToPrinter.  You can also set the print properties using a property node for the vi.  Also look at application menu item APP_PRINT_WINDOW.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 13
(10,184 Views)
Hi Test Engineering Leader,
you can use the function from user32.dll (keybd_event) to simulate key down and key up. Use this if you want to print an other application.
Mike


Message Edited by MikeS81 on 02-21-2008 08:11 AM
Message 3 of 13
(10,181 Views)
Hi Test,

easy solution: you can set the vi to "print when panel closed" in the vi properties!

Other solution:
there's an invoke node method that will give you the actual front panel as graphic data which can be saved using the picture file functions. (Instead of printing I prefer to save PNG files - paperless office Smiley Very Happy)


Message Edited by GerdW on 02-21-2008 03:11 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 13
(10,180 Views)

WOW!

Three DIFFERENT and ALL useful answers!  (ALL in 5 minutes too!)

( I don't know how to publicly rate a thread, but this rates VERY high in my book! )

 

0 Kudos
Message 5 of 13
(10,166 Views)

What if i need to get the image of whole Monitor screen...not only a vi front panel....

 

0 Kudos
Message 6 of 13
(9,568 Views)

Hi nxt,

 

see Mikes answer. After simulating the PrtScr key you can read the clipboard to get the picture...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 13
(9,561 Views)

See mike's reply here

 

 

Ok mike beat me to this. I think ben will be happy to hear this but tags are useful afterall.. :smileyvery-happy:

Message Edited by muks on 08-27-2009 05:00 PM
Message 9 of 13
(9,556 Views)

Test Engineering Leader wrote:

 

( I don't know how to publicly rate a thread, but this rates VERY high in my book! )


You can click the Kudos & appreciate the people who have helped you. Smiley Happy

 

Does the minimum 50-post rule exist still?

- Partha ( CLD until Oct 2027 🙂 )
Message 10 of 13
(9,525 Views)