LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save Intensity Graph as Bitmap

I'd like to save an intensity graph as a bitmap.
The problem is the colortable: how can I save the bitmap that the .bmp
or .jpg file does look exactly as my intensity graph does.
I already tried some fiddling with the colortable (take the colortable
of the graph as input for the "write bmp file.vi" which gave me results,
but not the desired ones.

Who's got a hint?

Justus
0 Kudos
Message 1 of 4
(3,818 Views)
Use an invoke node for the intensity graph, (right-click on graph and create >> invoke node, LabVIEW 6). Next, select the method: Get Image. Wire all this to a Write BMP File.vi and you also have to select a color depth (i.e., 1, 4, 8, 24). This will save the Intensity Graph Control as a bitmap. I just did it and it worked well.
Message 2 of 4
(3,818 Views)
Thanks for the hint. Unfortunately this is not quite what I want. My
graph has the dimensions 2000 x 500 datapoints. I'd like to create an
image which has exactly these 2000 x 500 datapoints as pixels.
Your solution worked very well, but created an image of the graph on the
screen with the bounding box, the controls and so on.
I'd like to have the raw data in an image.

jwf schrieb:
>
> Use an invoke node for the intensity graph, (right-click on graph and
> create >> invoke node, LabVIEW 6). Next, select the method: Get
> Image. Wire all this to a Write BMP File.vi and you also have to
> select a color depth (i.e., 1, 4, 8, 24). This will save the
> Intensity Graph Control as a bitmap. I just did it and it worked
> well.
0 Kudos
Message 3 of 4
(3,818 Views)
I found in the NI-homepage the VI "save panel to image file". This vi gives
you something like a screenshot of your vi.

Greetings, Niko

> I'd like to save an intensity graph as a bitmap.
> The problem is the colortable: how can I save the bitmap that the .bmp
> or .jpg file does look exactly as my intensity graph does.
> I already tried some fiddling with the colortable (take the colortable
> of the graph as input for the "write bmp file.vi" which gave me results,
> but not the desired ones.
>
> Who's got a hint?
>
> Justus

--
Ingenieurbüro Mencke & Tegtmeyer
Laubbreite 21
D-31789 Hameln
Tel. 0 51 51 / 96 33 68
Fax 0 51 51 / 96 33 69
e-Mail: menckeundtegtmeyer@t-online.de
0 Kudos
Message 4 of 4
(3,818 Views)