LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save a large sized control as an image

Solved!
Go to solution

I've made a scale on labview, and I want to convert it as an image. I've tried doing the Create >> Invoke Node >> Get Image method. From this, I do get an image, but it's just the portion of the scale that's being displayed on the front panel (as shown in the image attached, 'gs2'.jpg), and the blue background is also distorted. I want the whole length of the scale to be saved as an image, from 0 to 300, and with a clear blue bg as is being shown in the front panel. 

 

The vi is attached below. 

The 'scale parameters' image shows the dimensions of the scale.

The 'gradient scale 1' image is the image i'm using for the scale background. 

0 Kudos
Message 1 of 2
(602 Views)
Solution
Accepted by topic author sarwatsarfaraz

Hi sarwat,

 


@sarwatsarfaraz wrote:

I've tried doing the Create >> Invoke Node >> Get Image method. From this, I do get an image, but it's just the portion of the scale that's being displayed on the front panel (as shown in the image attached, 'gs2'.jpg),


Using this method you get an image of the control as it is shown in the frontpanel!

Hint: When you resize your control to show the full scale image then you will get an image of the full scale…

 


@sarwatsarfaraz wrote:

the blue background is also distorted.


That's your fault! When you set an "image depth" of 24 (color bits per pixel) you get the desired 24bit-RGB image…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(562 Views)