LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

to acquire waveform data from tds1012B scope as bitmap and save the bmp file in my pc in cvi

hi; Im developing a test system containing a tds1012B scope which communicates through USB with the system PC.I develop a test software in cvi.Now Im stuck on saving the waveform I see on scope screen to my PC as bitmap file.I searched in your forum sites but could not find an example code that is writtrn for a tds scope which communicates through usb and saves the scope screen as bitmap in PC. does any body have an application or an example code written in cvi ? I really need urgent halp... thanks
0 Kudos
Message 1 of 2
(3,345 Views)

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.

Eric B.
National Instruments
0 Kudos
Message 2 of 2
(3,316 Views)