Communication layer¶
-
class
icepap.communication.
IcePAPCommunication
(host, port=5000, timeout=3)¶ Class implementing the communication layer for IcePAP motion controller. It bases on the socket communication. For the Serial communication see manual.
-
disconnect
()¶ Method to close the communication
-
send_binary
(ushort_data)¶ Method to send a binary data to the IcePAP controller.
- Parameters
ushort_data – Data converted to a unsigned short list.
-
send_cmd
(cmd)¶ Method to send commands to the IcePAP controller. It uses acknowledge communication (IcePAP User Manual pag. 37).
- Parameters
cmd – Command without acknowledge character and CR and/or LF.
- Returns
None or list of string without the command and the CRLF.
-