Docs
NAME
setValues - set the values on the digital connectors
SYNOPSIS
function setValues(connectorsId, baseIndex, values);
DESCRIPTION
The function is used to set the values on the digital connectors with id connectorsId. The values will be set one by one to the connectors, starting from baseIndex connector.
RETURN VALUES
None.
EXAMPLES
A simple case:
connectors = createDigitalConnectors(5); setValues(connectors, 0, {0.0, 2.0, 5.5, 1.0, 7.0}); values = getValues(connectors, 0, 5); -- {0.0, 2.0, 5.5, 1.0, 7.0} setValues(connectors, 1, {8.0, 7.5, 3.0}); values = getValues(connectors, 0, 5); -- {0.0, 8.0, 7.5, 3.0, 7.0} setValues(connectors, 4, {9.0}); values = getValues(connectors, 0, 5); -- {0.0, 8.0, 7.5, 3.0, 9.0}