Docs
NAME
setSignals - apply the signals to the abstract connectors
SYNOPSIS
function setSignals(connectorsId, baseIndex, signals);
DESCRIPTION
The function is used to apply the signals to the abstract connectors with id connectorsId. Argument signals provides the numeric values of the signals. They will be applied one by one to the connectors, starting from baseIndex connector.
RETURN VALUES
None.
EXAMPLES
A simple case:
connectors = createAbstractConnectors(5); setSignals(connectors, 0, {0.0, 2.0, 5.5, 1.0, 7.0}); signals = getSignals(connectors, 0, 5); -- {0.0, 2.0, 5.5, 1.0, 7.0} setSignals(connectors, 1, {8.0, 7.5, 3.0}); signals = getSignals(connectors, 0, 5); -- {0.0, 8.0, 7.5, 3.0, 7.0} setSignals(connectors, 4, {9.0}); signals = getSignals(connectors, 0, 5); -- {0.0, 8.0, 7.5, 3.0, 9.0}