-
Notifications
You must be signed in to change notification settings - Fork 2
_port_query
bergsma edited this page Sep 26, 2014
·
3 revisions
#port_query
###Sebd a general message query and wait for a reply.
Syntax
status = port_query ( id,data ) ;
Arguments
- int id
The device Id. The device id must be port_assign()ed to a port handle created by port_open() or port_service().
- list data
The data to send.
Return Value
str status
- $ACKNOWLEDGE : The SECS message was sent and a reply SECS message received.
The STATUS variable is set to $ACKNOWLEDGE
- %BOUNDS : Device Id is out of range.
The STATUS variable is set to %BOUNDS
- %PORT : Device id 'x' is not assigned. Use port_assign(id,fd)
The STATUS variable is set to %PORT
- %PORT : No port connection (through port 'x') exists for device 'y'
The STATUS variable is set to %PORT
- %PORT : Failed to send port message
The STATUS variable is set to %PORT
Warnings
- %BOUNDS : Device Id is out of range.
- %PORT : Device id 'x' is not assigned. Use port_assign(id,fd)
- %PORT : No port connection (through port 'x') exists for device 'y'
- %PORT : Failed to send port message
Exceptions
- %ARGUMENT: Invalid arguments. Usage: status = port_query ( id,data ) ;
Description
- None
Examples
puts "Create an example for the function 'port_query'" ;
Related Links
None