Top  | Previous | Next

Signal Generator

Description

The signal generator is similar to the Timer component, but its value isn't simply a counter. Instead, you can choose from a variety of familiar 'signals'. You configure the frequency by setting the Period property, which is in milliseconds. You configure the resolution by setting the Values/Period property.

 

For example, if you choose a sine wave signal with a period of 2000 milliseconds and 10 values/period, your sine wave will have a frequency of 0.5 Hz, and its value will change 10 times every 2 seconds.

Properties

Behavior

Signal Type

The signal type (shape) of the signal value

Scripting name

signalType

Data type

int

Values

0

Sine

2

Triangular

1

Ramp

3

Square

4

Random

Running?

Determines whether or not the signal is being generated.

Scripting name

running

Data type

boolean

Flags

bindable

Period

The period of the signal in milliseconds

Scripting name

period

Data type

int

Values/Period

The number of value changes per period

Scripting name

valuesPerPeriod

Data type

int

Common

Name

The name of this component.

Scripting name

name

Data type

String

Data

Value

The current value of this signal generator.

Scripting name

value

Data type

double

Flags

bindable

Upper Bound

The upper bound of the signal value.

Scripting name

upper

Data type

double

Lower Bound

The lower bound of the signal value.

Scripting name

lower

Data type

double

Scripting

Events

The following event sets are fired by this component. See Component Event Handlers to learn more.

action
propertyChange

 

Scripting Functions

This component has no special scripting functions.