Draws a scale onto a picture.


icon

Inputs/Outputs

  • ccclst.png [user-specified font]

    [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.

  • cstr.png Font Name:

    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.

  • ci16.png Size

    Size specifies the size of the font in points.

  • cbool.png Strikeout?

    Strikeout? specifies if the text appears in strikeout. If Strikeout? is TRUE, the text appears in strikeout.

  • cbool.png Italic?

    Italic? specifies if the text appears in italics. If Italic? is TRUE, the text appears in italics.

  • cbool.png Underline?

    Underline? specifies if the text is underlined. If Underline? is TRUE, the text appears underlined.

  • cbool.png Outline?

    Outline? specifies if the text is outlined. If Outline? is TRUE, the text appears outlined.

  • cbool.png Shadow?

    Shadow? specifies if the text has a shadow. If Shadow? is TRUE, the text appears in shadow.

  • cbool.png Bold?

    Bold? specifies if the text is bold. If Bold? is TRUE, the text appears bold.

  • cenum.png desired font(Application)

    desired font specifies the text font.

    0
    User-specified Font
    1
    Application Font
    (default)
    2
    System Font
    3
    Dialog Font
  • cpict.png picture

    picture is the picture to which you want to add the scale. The default is an empty picture.

  • c1dcclst.png scale specs

    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.

  • ci16.png coordinate

    coordinate specifies the coordinates to use in the scale.

  • cstr.png label

    label specifies the labels to use in the scale.

  • ci16.png constant coordinate

    constant coordinate is the location of the x coordinate in a vertical scale, or the y coordinate in a horizontal scale.

  • ci16.png tick length(3)

    tick length specifies the length of the tick marks on the edge of the scale.

  • ccclst.png scale attributes

    scale attributes describes the format for the scale.

  • cbool.png horizontal

    horizontal indicates whether to draw a horizontal or vertical scale.

  • cbool.png left/top

    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).

  • cbool.png draw bar

    draw bar indicates whether to draw a bar as part of the scale.

  • cu32.png line color

    line color specifies the color of the line.

    You can wire a color box constant to this input.

  • cu32.png text color(black)

    text color is the color of the text. The default is black.

    You can wire a color box constant to this input.

  • ipict.png new picture

    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.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Graphics and Sound\Picture Plots\Simple Scale.vi