Data Acquisition Toolbox    
putvalue

Write values to lines

Syntax

Arguments

obj
A digital I/O object.
obj.Line(index)
One or more lines contained by obj.
data
A decimal value or binary vector.

Description

putvalue(obj,data) writes data to the hardware lines contained by the digital I/O object obj.

putvalue(obj.Line(index),data) writes data to the hardware lines specified by obj.Line(index).

Remarks

More About Writing Values to Lines

Example

Create the digital I/O object dio and add four output lines to it.

Write the value 8 as a decimal value and as a binary vector.


  putsample save