![]() |
G5.Api 1.22.0.121
.Net API to control Regatron G5 devices
|
G5System is the root object of this library.
It is the entry point to all the functionality of this library.
You can create multiple number of instances by using:
Regatron.G5.Api.System.G5System.CreateSystem
.
More...

Public Member Functions | |
| override List< Device > | GetDeviceList () |
| Get a list with all devices or null. | |
| override Device | GetDevice (UInt16 deviceId) |
| Get a dedicated device. | |
| override Device | GetConnectedDevice () |
| Get the directly connected device. | |
| 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. | |
Static Public Member Functions | |
| static G5System | CreateSystem () |
| Create an instance of a G5System root object. | |
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. | |
Properties | |
| static G5System | Instance [get] |
| Get a Singleton instance of a G5System root object. | |
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. | |
G5System is the root object of this library.
It is the entry point to all the functionality of this library.
You can create multiple number of instances by using:
Regatron.G5.Api.System.G5System.CreateSystem
.
|
inlineinherited |
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 |
|
inlineinherited |
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 |
|
inlineinherited |
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 |
|
inlineinherited |
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 |
|
inlineinherited |
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 |
|
inlineinherited |
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 |
|
inlinestatic |
|
inlineinherited |
Disconnect from a device.
| G5ApiException |
|
inlineinherited |
Get an instance of ActiveInterface.
|
inlineinherited |
Get an instance of ActualSystemValues.
|
inlineinherited |
Get an instance of BatteryControl.
|
inlineinherited |
Get a instance of SystemCharacteristics.
|
inlineinherited |
Get an instance of SystemCommands.
|
inline |
Get the directly connected device.
| G5ApiException |
|
inlineinherited |
Get an instance of DataExchange.
|
inline |
Get a dedicated device.
| deviceId | Device id of the requested device. |
| G5ApiException |
|
inline |
Get a list with all devices or null.
| G5ApiException |
|
inlineinherited |
Get an instance of EthernetConfiguration.
|
inlineinherited |
Get an instance of FunctionGenerator.
|
inlineinherited |
Get an instance of SystemInformation.
|
inlineinherited |
Get an instance of LicenseInformation.
|
inlineinherited |
Get an instance of LoadProtection.
|
inlineinherited |
Get an instance of OutputControl.
|
inlineinherited |
Get an instance of OutputMeasurement.
|
inlineinherited |
Gets an instance of ParameterSetConfiguration.
|
inlineinherited |
Get an instance of ReferenceValues.
|
inlineinherited |
Get an instance of ReferenceValueSource.
|
inlineinherited |
Get an instance of Safety.
|
inlineinherited |
Get an instance of Sensing.
|
inlineinherited |
Get an instance of SolarArraySimulation.
|
inlineinherited |
Get an instance of SystemState.
|
inlineinherited |
|
inlineinherited |
Check if a device is connected.
True: A device is connected.
False: No Device is connected.
| G5ApiException |
|
staticinherited |
Use this to suppress "reinitialization" of the logging in case of the WebAPI or any other caller that also uses log4net logging.
|
staticget |
Get a Singleton instance of a G5System root object.
|
inherited |
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.