Create, Obtain, Remove
Create and Obtain
Create a stream on the port, and obtain the stream object. The stream index is automatically assigned by the port.
Corresponding low-level API class: PS_CREATE
stream = await port.streams.create()
Obtain One
Obtain an existing stream on the port with an explicit stream index.
stream = = port.streams.obtain(0)
Obtain Multiple
Obtain multiple existing streams on the port with explicit stream indices.
stream_list = port.streams.obtain_multiple(*[0,1,2])
Remove
Deletes the stream definition with the specified sub-index value.
Corresponding low-level API class: PS_DELETE
# Remove
# Remove a stream on the port with an explicit stream index.
await port.streams.remove(position_idx=0)