Toggle('Trigger', 'Initial=0')

Arguments

'Trigger'

Trigger signal (rising edge), which toggles the output

'Initial=0'

Value at start of acquisition

If this argument is omitted, the start value is 0.

Description

This function toggles the output with each rising edge on ‘Trigger’. The last parameter ‘Initial’ is optional and determines the value at start of acquisition.

Example

The rising edges of a temperature alert signal Temperature alert should switch a digital signal NewRisingEdge on and off.

Solution