LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I print to file in LabWindows/CVI?

I have two panels in my GUI that I would like to print to or save as a file. I thought that something like the print to file command would work and wondered if a function like this was available in LabWindows/CVI 5.5?
I would like to save the image along with the data that appears on the CRT to a file to be retrieved at a later date.
0 Kudos
Message 1 of 2
(3,163 Views)
To save an image of a graph you can use the function GetCtrlBitmap from the User Interface library, then the function SaveBitmapToFile from the Programmer's Toolbox (cvi\toolslib\toolbox\toolbox.fp). That will save a BMP file of the graph. You can also get a bitmap of a panel with GetPanelDisplayBitmap.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(3,163 Views)