LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Screenshots with CVI?

Greetings, maybe i overread something in the manual, but i need my application to save screenshots to disk at certain times. Fine, i thought as i read about the printpanel function. And it works, i have files from about 300k on my disk but the problem is i can't open them with any picture viewer.

Any idea what file-format the files are (BMP i guess) or with which application they can be opened?

Or another idea to make automatic screenshots to disk from my application?

Thanks for any help!
0 Kudos
Message 1 of 6
(3,625 Views)
PrintPanel is designed for printing (to files or printers). If you route the printing to a file, then you get a PostScript file not an image.

If you want to save a bitmap image of your panel to file, then you can use the function SavePanelDisplayToFile which is in the Programmer's Toolbox (cvi\toolslib\toolbox\toolbox.fp).

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 6
(3,625 Views)
Thank you very much for your fast answer :)))))

Best Regards
0 Kudos
Message 3 of 6
(3,625 Views)
Sorry, seems a was a little to fast. I am using CVI 5.0 and i am not able to find the function in the toolbox. Maybe it was implemented in a newer version.

Do you have any other idea? Simulating a keystroke to use a third party application would also do fine. But i only found vi's for LabView to do so.

Thanks for your help
0 Kudos
Message 4 of 6
(3,625 Views)
Sorry, you are correct, it was added in CVI 5.5 to the toolbox. Below is a program that will work in CVI 5.0. I highly recommend upgrading though, there are enormous improvements in CVI between 5.0 and 6.0.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 5 of 6
(3,625 Views)
Chris,
I have been trying to do this for days. I was about to spend money on an application which would allow saving off controls and panels to bitmap files. Thanks for the help.
0 Kudos
Message 6 of 6
(3,625 Views)