![]() |
G5.Api 1.22.0.121
.Net API to control Regatron G5 devices
|

Public Member Functions | |
| Boolean | Connect (Int32 comPortNumber, Int32 baudRate) |
| Connect to a device via a dedicated serial/UART port. | |
| Boolean | Connect (Int32 comPortNumber, Int32 baudRate, Int32 timeout) |
| Connect to a device via a dedicated serial/UART port. | |
| Boolean | Connect (String targetIpAddress, UInt16 targetPortNumber) |
| Connect to a device via a dedicated IP address and port. | |
| Boolean | Connect (String targetIpAddress, UInt16 targetPortNumber, Int32 timeout) |
| Connect to a device via a dedicated IP address and port. | |
| Boolean | Connect (String targetIpAddress, UInt16 targetPortNumber, String hostIpAddress, UInt16 hostPortNumber) |
| Connect to a device via a dedicated IP address and port. | |
| Boolean | Connect (String targetIpAddress, UInt16 targetPortNumber, String hostIpAddress, UInt16 hostPortNumber, Int32 timeout) |
| Connect to a device via a dedicated IP address and port. | |
| Boolean | IsConnected () |
| Check if a device is connected. | |
| Boolean | Disconnect () |
| Disconnect from a device. | |
| SystemCharacteristics | GetCharacteristics () |
| Get a instance of SystemCharacteristics. | |
| ReferenceValues | GetReferenceValues () |
| Get an instance of ReferenceValues. | |
| Sensing | GetSensing () |
| Get an instance of Sensing. | |
| SystemReversePolarityProtection | GetSystemReversePolarityProtection () |
| ActualSystemValues | GetActualValues () |
| Get an instance of ActualSystemValues. | |
| Commands | GetCommands () |
| Get an instance of SystemCommands. | |
| DataExchange | GetDataExchange () |
| Get an instance of DataExchange. | |
| FunctionGenerator | GetFunctionGenerator () |
| Get an instance of FunctionGenerator. | |
| SolarArraySimulation | GetSolarArraySimulation () |
| Get an instance of SolarArraySimulation. | |
| BatteryControl | GetBatteryControl () |
| Get an instance of BatteryControl. | |
| LoadProtection | GetLoadProtection () |
| Get an instance of LoadProtection. | |
| SystemState | GetState () |
| Get an instance of SystemState. | |
| EthernetConfiguration | GetEthernetConfiguration () |
| Get an instance of EthernetConfiguration. | |
| SystemInformation | GetInformation () |
| Get an instance of SystemInformation. | |
| LicenseInformation | GetLicenseInformation () |
| Get an instance of LicenseInformation. | |
| OutputControl | GetOutputControl () |
| Get an instance of OutputControl. | |
| Safety | GetSafety () |
| Get an instance of Safety. | |
| ReferenceValueSource | GetReferenceValueSource () |
| Get an instance of ReferenceValueSource. | |
| ParameterSetConfiguration | GetParameterSetConfiguration () |
| Gets an instance of ParameterSetConfiguration. | |
| ActiveInterface | GetActiveInterface () |
| Get an instance of ActiveInterface. | |
| OutputMeasurement | GetOutputMeasurement () |
| Get an instance of OutputMeasurement. | |
| List< TDevice > | GetDeviceList () |
| TDevice | GetDevice (UInt16 deviceId) |
| TDevice | GetConnectedDevice () |
Static Public Attributes | |
| static bool | InitializeLogging = true |
| Use this to suppress "reinitialization" of the logging in case of the WebAPI or any other caller that also uses log4net logging. | |
Events | |
| G5ConnectionChangedDelegate | ConnectionChanged |
| Informs whether or not there is a connection to the G5 device. In case of disconnection this can be: a) The user made the disconnection, b) Unexpected connection interruption. | |
|
inline |
Connect to a device via a dedicated serial/UART port.
| comPortNumber | Number of the COM port (1 = COM1, 2 = COM2, ...) |
| baudRate | Baud rate. Supported values: 230400, 38400 |
| ArgumentException | |
| G5ApiException |
|
inline |
Connect to a device via a dedicated serial/UART port.
| comPortNumber | Number of the COM port (1 = COM1, 2 = COM2, ...). |
| baudRate | Baud rate. Supported values: 230400, 38400. |
| timeout | Communication timeout. |
| ArgumentException | |
| G5ApiException |
|
inline |
Connect to a device via a dedicated IP address and port.
| targetIpAddress | IP Address of the target device in IPv4 format (e.g. "192.168.1.20"). |
| targetPortNumber | Port number of the target. Default: 2000. |
| ArgumentNullException | |
| ArgumentException | |
| G5ApiException |
|
inline |
Connect to a device via a dedicated IP address and port.
| targetIpAddress | IP Address of the target device in IPv4 format (e.g. "192.168.1.20"). |
| targetPortNumber | Port number of the target. Default: 2000. |
| timeout | Port number of the target. Default: 2000. |
| ArgumentNullException | |
| ArgumentException | |
| G5ApiException |
|
inline |
Connect to a device via a dedicated IP address and port.
| targetIpAddress | IP Address of the target device in IPv4 format (e.g. "192.168.1.20"). |
| targetPortNumber | Port number of the target. Default: 2000. |
| hostIpAddress | IP Address of the host in IPv4 format (e.g. "192.168.1.10"). |
| hostPortNumber | Port number of the host. |
| ArgumentNullException | |
| ArgumentException | |
| G5ApiException |
|
inline |
Connect to a device via a dedicated IP address and port.
| targetIpAddress | IP Address of the target device in IPv4 format (e.g. "192.168.1.20"). |
| targetPortNumber | Port number of the target. Default: 2000. |
| hostIpAddress | IP Address of the host in IPv4 format (e.g. "192.168.1.10"). |
| hostPortNumber | Port number of the host. |
| timeout | Communication timeout. |
| ArgumentNullException | |
| ArgumentException | |
| G5ApiException |
|
inline |
Disconnect from a device.
| G5ApiException |
|
inline |
Get an instance of ActiveInterface.
|
inline |
Get an instance of ActualSystemValues.
|
inline |
Get an instance of BatteryControl.
|
inline |
Get a instance of SystemCharacteristics.
|
inline |
Get an instance of SystemCommands.
|
abstract |
|
inline |
Get an instance of DataExchange.
|
abstract |
|
abstract |
|
inline |
Get an instance of EthernetConfiguration.
|
inline |
Get an instance of FunctionGenerator.
|
inline |
Get an instance of SystemInformation.
|
inline |
Get an instance of LicenseInformation.
|
inline |
Get an instance of LoadProtection.
|
inline |
Get an instance of OutputControl.
|
inline |
Get an instance of OutputMeasurement.
|
inline |
Gets an instance of ParameterSetConfiguration.
|
inline |
Get an instance of ReferenceValues.
|
inline |
Get an instance of ReferenceValueSource.
|
inline |
Get an instance of Safety.
|
inline |
Get an instance of Sensing.
|
inline |
Get an instance of SolarArraySimulation.
|
inline |
Get an instance of SystemState.
|
inline |
|
inline |
Check if a device is connected.
True: A device is connected.
False: No Device is connected.
| G5ApiException |
|
static |
Use this to suppress "reinitialization" of the logging in case of the WebAPI or any other caller that also uses log4net logging.
| G5ConnectionChangedDelegate Regatron.G5.Api.System.G5SystemBase< TDevice, TControllerBoard, TConverterBoard >.ConnectionChanged |
Informs whether or not there is a connection to the G5 device. In case of disconnection this can be: a) The user made the disconnection, b) Unexpected connection interruption.