gclib 2.4.0
Galil Communications Library
Loading...
Searching...
No Matches
Controller

Manage a Galil controller More...

Topics

 Data Record
 Used to get values from a data record handle.
 Memory
 Manage controller firmware, program, and arrays.
 Unsolicited Data
 Get unsolicited messages, interrupts, or data records, in blocking or callback mode.

Functions

gclib_result gclib_revision_information (gclib_handle h, char *rev_info, size_t len)
 Get revision information (^R^V) from controller.
gclib_result gclib_serial_number (gclib_handle h, uint32_t *serial_number)
 Get serial number from controller.
gclib_result gclib_command (gclib_handle h, const char *command, char *buf, size_t len)
 Issues a command to the controller and provides the response.
void gclib_set_compat ()
gclib_result gclib_set_timeout (gclib_handle h, size_t timeout)

Detailed Description

Manage a Galil controller

Function Documentation

◆ gclib_revision_information()

gclib_result gclib_revision_information ( gclib_handle h,
char * rev_info,
size_t len )

Get revision information (^R^V) from controller.

Parameters
hHandle to an open connection.
rev_infoOutput buffer for revision information.
lenSize of output buffer.
Returns

◆ gclib_serial_number()

gclib_result gclib_serial_number ( gclib_handle h,
uint32_t * serial_number )

Get serial number from controller.

Parameters
hHandle to an open connection.
serial_numberWill be set to the serial number of the controller, or 0 on failure.
Returns
GCLIB_INTERNAL_ERROR if serial number could not be retrieved.

◆ gclib_command()

gclib_result gclib_command ( gclib_handle h,
const char * command,
char * buf,
size_t len )

Issues a command to the controller and provides the response.

Note that a single command cannot be longer than 80 characters, similar to a program line.

Parameters
hHandle to an open connection.
commandCommand to be sent to the controller. Will be terminated with a carriage return.
bufOutput buffer for controller response.
lenLength of output buffer.
Returns

◆ gclib_set_compat()

void gclib_set_compat ( )

◆ gclib_set_timeout()

gclib_result gclib_set_timeout ( gclib_handle h,
size_t timeout )