en ru

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}

SEE ALSO

createDigitalConnectors, getValues

Verbatim copying and distribution of this entire article are permitted in any medium, provided this notice is preserved.
Send suggestions, questions and bug reports to neurowombatmail@gmail.com
Copyright © 2009, 2010, 2011, 2012 Andrew Timashov