SquareWave

Top  Previous  Next

LL_SquareWave

View Inside SquareWave:

LL_SquareWave_Inside

 

SquareWave models a simple square wave generator. It takes four parameters, used to specify the time the first pulse should begin, the pulse height and length, and the interval between pulses. It has four outputs, of four different types, so that it can be used to drive systems expecting different types of inputs. Often SquareWave is used to turn on various devices, such as sensors and laser sources, each at a precisely specified moment, to ensure that they are synchronized correctly

C++ type

name

value

description

Parameters

double

startTime

0

Time of first up state (s)

double

pulseHeight

1.0

Height of pulse

double

pulseLength

1.0e+6

Length of pulse (s)

double

pulseInterval

1.0e+6

Interval between beginning of pulses (s)

Inputs

none

Outputs

double

outputSignal


Double value of output signal

int

intOutputSignal


Integer value of output signal

double

doubleOutputSignal


Double value of output signal

bool

boolOutputSignal


Boolean value of output signal (false when low, true when high)