hComm
Introductionclass that defines the interface to a Hyperion instrument Member Functionsclosepublic Discussionclose the communication channel to the instrument (virtual) connectpublic Discussionopen a communication channel and establish a connection (virtual) execute_commandpublic ParametersReturn Value0 if successful, 1 if there is an error returned by the instrument, or -1 if there is a system error. If there is an error returned by the instrument, then the error message will be contained in response.message. If there is a system error, use get_last_error() to get the error message. DiscussionExecute a hyperion command by sending a command and reading a response. read_dataprotected ParametersReturn Valuereturns the number of bytes read, or -1 if there is an error DiscussionRead raw data back from a communication channel (virtual). read_responsepublic Return Value0 if successful, 1 if there is an error returned by the instrument, or -1 if there is a system error. If there is an error returned by the instrument, then the error message will be contained in response.message. If there is a system error, use get_last_error() to get the error message. DiscussionRead a structured response from a Hyperion instrument. Throws HyperionException on error. set_timeoutpublic Discussionset the timeout value in milliseconds for the specified channel. (virtual) write_commandpublic ParametersDiscussionWrite a hyperion command to the instrument. Throws HyperionException on error. write_dataprotected ParametersReturn ValueReturns number of bytes written if successful, -1 otherwise DiscussionWrite raw data to a communication channel (virtual) ~hCommpublic DiscussionDestructor for hComm class (virtual) |