GETHUNITS

Purpose:

Returns the horizontal (X) units of a series.

Syntax:

GETHUNITS(series)

series

-

Optional. A series. Defaults to the current Window.

Returns:

A string.

Example:

gethunits(W3)

 

returns the horizontal units of Window 3.

Example:

W1: gnorm(1000, 1);setvunits("V");sethunits("s")

message(sprintf("The units of Window %d are %s per %s", getwnum, getvunits, gethunits))

 

displays a message box with the text - The units of Window 1 are Volts per Second.

Remarks:

Especially useful in custom menu and report panels.

 

When using GETHUNITS without the series argument, GETHUNITS returns the horizontal units of the series in focus.

See Also:

FOCUS

GETVUNITS

GETZUNITS

SETHUNITS

SETVUNITS

SETZUNITS

UNITS