SMC100CC & SMC100PP
2.0
Command Interface
2.1
Constructor
SMC100()
The constructor is used to create an instance of the SMC100 device.
2.2
Functions
2.2.1
General
2.2.1.1
OpenInstrument
Syntax
int OpenInstrument(string strDeviceKey)
string strDeviceKey: the device key is a serial COM port
return: 0 = successful or -1 = failure
Decription
This function allows opening communication with the selected device. If the opening
failed, the returned code is -1.
2.2.1.2
CloseInstrument
Syntax
int CloseInstrument()
return: 0 = successful or -1 = failure
Decription
This function allows closing communication with the selected device. If the closing
failed, the returned code is -1.
2.2.1.3
GetDevices
Syntax
string[] GetDevices()
return: list of strings that contains the accessible COM ports.
Decription
This function returns the list of connected devices available to communicate.
2.2.1.4
WriteToInstrument
Syntax
int WriteToInstrument(string command, ref string response, int stage)
command: Instrument command
response: Response of the command
stage: Instrument Stage
return:
Decription
This Overridden function Queries or writes the command given by the user to the
instrument.
3
Command Interface Manual
EDH0311En1021 – 09/18