Draw Scale VI

Owning Palette: Picture Plots VIs

Requires: Base Development System

Draws a scale onto a picture.

Example

 Add to the block diagram  Find on the palette
[user-specified font] specifies the specific font characteristics for the text to draw. The VI ignores this input unless desired font is User-specified Font.
Font Name specifies the font to use for the text. If you misspell the font name or specify a font that is not installed on the computer, the operating system selects a font.
Size specifies the size of the font in points.
Strikeout? specifies if the text appears in strikeout. If Strikeout? is TRUE, the text appears in strikeout.
Italic? specifies if the text appears in italics. If Italic? is TRUE, the text appears in italics.
Underline? specifies if the text is underlined. If Underline? is TRUE, the text appears underlined.
Outline? specifies if the text is outlined. If Outline? is TRUE, the text appears outlined.
Shadow? specifies if the text has a shadow. If Shadow? is TRUE, the text appears in shadow.
Bold? specifies if the text is bold. If Bold? is TRUE, the text appears bold.
desired font specifies the text font.

0User-specified Font
1Application Font (default)
2System Font
3Dialog Font
picture is the picture to which you want to add the scale. The default is an empty picture.
scale specs is an array of clusters containing the coordinates and labels you can use in the scale. Use the Calc Scale Specs VI to obtain the values for this input.
decade specs contains the coordinates and labels to use in a scale.
coordinate specifies the coordinates to use in the scale.
label specifies the labels to use in the scale.
constant coordinate is the location of the x coordinate in a vertical scale, or the y coordinate in a horizontal scale.
tick length specifies the length of the tick marks on the edge of the scale.
scale attributes describes the format for the scale.
horizontal indicates whether to draw a horizontal or vertical scale.
left/top indicates whether to draw the text to the left for a vertical scale and the top for a horizontal scale (TRUE), or to the right for a vertical scale and the bottom for a horizontal scale (FALSE).
draw bar indicates whether to draw a bar as part of the scale.
line color specifies the color of the line. You can wire a color box constant to this input.
text color is the color of the text. The default is black. You can wire a color box constant to this input.
new picture is the picture that contains the scale. You can wire this output to any other picture input to add more drawing instructions to the picture. You also can wire this output to the Picture to Pixmap VI to obtain an image data cluster. You then can save the image data to a file using the Graphics Formats VIs.

Example

Refer to the Simple Scale VI in the labview\examples\Graphics and Sound\Picture Plots directory for an example of using the Draw Scale VI.

 Open example  Find related examples