Takes a specification for a Cartesian style scale and calculates the coordinates and labels to use for the scale.


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
  • ccclst.png scale definition

    scale definition specifies the pixel coordinates and values for both ends of the scale, and the numeric format and precision for the scale numbers.

  • ci16.png coordinate 1

    coordinate 1 contains the pixel coordinates for the left of a vertical scale or the top of a horizontal scale.

  • cdbl.png value 1

    value 1 contains the minimum value for the scale numbers.

  • ci16.png coordinate 2

    coordinate 2 contains the pixel coordinates for the right of a vertical scale or the bottom of a horizontal scale.

  • cdbl.png value 2

    value 2 contains the maximum value for the scale numbers.

  • cbool.png log?(F)

    log? specifies if the scale is logarithmic.

  • cnclst.png fmt and prec

    fmt and prec specifies the numeric format and precision for the scale numbers.

  • cenum.png format

    format specifies the numeric format for the scale numbers.

    0
    Decimal
    1
    Scientific
    2
    Engineering
    3
    Binary
    4
    Octal
    5
    Hex
  • cu8.png precision

    precision specifies the precision for the scale numbers. The default is 1.

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

  • i1dcclst.png scale specs

    scale specs is an array of clusters containing the coordinates and labels you can use in the scale.

  • ii16.png coordinate

    coordinate specifies the coordinates to use in the scale.

  • istr.png label

    label specifies the labels to use in the scale.

  • Wire the scale specs output of this VI to the scale specs input of the Draw Scale VI to draw a scale.

    Examples

    Refer to the following example files included with LabVIEW.

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