.lineset Method

Function:

Sets the I/O line specified by the num argument HIGH or LOW as specified by the state argument.

Syntax:

io.lineset(num as pl_io_num, state as low_high)

Returns:

---

See Also:

Line/Port Manipulation Without Preselection, io.lineget, io.invert


Part

Description

num

See the list of pl_io_num constants in the platform specifications.

state

LOW or HIGH (low_high enum values).


Details

No line preselection with the io.num property is required and the value of io.num will not be changed.


Exception Safety

There are a few situations in which an exception may be thrown when invoking this method. For more information, see Handling Exceptions.


Exception

Root Cause(s)

std::invalid_argument

The selected I/O line number is invalid.


.lineset Method

Details

Exception Safety