Discrete Property

Measurement Studio User Interface

Discrete Property

Syntax

CWAxis.Discrete

Data Type

Boolean

Purpose

Represents only discrete values on the axis, according to the base and interval properties.

Remarks

A discrete axis limits the valid values. All values mapped to the axis, such as pointers and graph data, are assigned to the closest discrete value. For example, you can create a discrete axis of integers where the valid values are -1, 0, 1, 2 ,3, and so on.

Typically, you create tick marks with the same base and interval values.

This property does not affect the axis when its Log property is set to True.

Example

'Setup the CWSlide control to take only integer data
CWSlide1.Axis.Discrete = True
CWSlide1.Axis.DiscreteInterval = 1
CWSlide1.Axis.DiscreteBase = 1

'Setup the CWSlide control to round all data to the 
'nearest 0.5
CWSlide1.Axis.Discrete = True
CWSlide1.Axis.DiscreteInterval = .5
CWSlide1.Axis.DiscreteBase = 0

See Also

DiscreteBase

DiscreteInterval