02-20-2009 08:57 AM
02-23-2009 09:54 AM
Hi serialdaq,
I don't have any example code, but there's a few functions that might be helpful. The GetCtrlBitmap function gets a bitmap image from a control and stores it in a bitmap object. You can use that function on your waveform control, then save your bitmap file with the SaveBitmapToFile function.
If you want to see an example of getting a bitmap and saving it to a file, there is a shipping example that does this. Open the Example Finder in CVI (Help»Find Examples) and navigate to Building User Interfaces»Controlling Font Panel Objects Programmatically»uirview.cws . This example is a utility designed to view UIR files. It lets you save pictures of the UIRs to bitmap, among other things. To find the bitmap saving code, look in the menu.c file for the SaveCB function.