Data Acquisition Toolbox    
getvalue

Read values from lines

Syntax

Arguments

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

Description

out = getvalue(obj) returns the current value from all lines contained by obj as a binary vector to out.

out = getvalue(obj.Line(index)) returns the current value from the lines specified by obj.Line(index).

Remarks

More About Reading Values from Lines

Example

Create the digital I/O object dio and add eight input lines to it.

To return the current values from all lines contained by dio as a binvec value:

See Also

Functions

binvec2dec


  getsample ischannel