-
Notifications
You must be signed in to change notification settings - Fork 2
_port_assign
bergsma edited this page Sep 26, 2014
·
5 revisions
#port_assign
###Assign a device id to a tcp or serial port.
Syntax
status = port_assign ( id,port ) ;
Arguments
- int id
Device id. Valid range from 0 to 65535.
- handle port
A port handle returned by the port_open or port_service functions.
Return Value
str status
- $ACKNOWLEDGE : The device id was assigned to the port handle.
The STATUS variable is set to $ACKNOWLEDGE
- 0 : No port port 'x'. Use port_open() to open port.
The STATUS variable is set to %UNDEFINED
- 0 : Device Id 'x' is already assigned to port 'y' by instance 'z'.
The STATUS variable is set to %port
Warnings
- %UNDEFINED : No port port 'x'. Use port_open() to open port.
- %port : Device Id 'x' is already assigned to port 'y' by instance 'z'.
Exceptions
-
%ARGUMENT: Invalid arguments. Usage: status = port_assign ( id,port ) ;
-
%BOUNDS: Device ID out of range.
Description
p
Examples
puts "Create an example for the function 'port_assign'" ;
Related Links