pull/8/merge
Jarkko Peltonen 8 years ago committed by GitHub
commit 18d5aa0b8b

@ -154,6 +154,9 @@ namespace IEC61850
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern void IedConnection_uninstallReportHandler(IntPtr connection, string rcbReference);
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
static extern void IedConnection_triggerGIReport(IntPtr connection, out int error, string rcbReference);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
private delegate void InternalReportHandler (IntPtr parameter, IntPtr report);
@ -299,6 +302,19 @@ namespace IEC61850
throw new IedConnectionException ("getRCBValues service failed", error);
}
/// <summary>
/// Trigger General Interrogation Report
/// </summary>
/// <exception cref="IedConnectionException">This exception is thrown if there is a connection or service error</exception>
public void TriggerGIReport()
{
int error;
IedConnection_triggerGIReport(connection, out error, objectReference);
if (error != 0)
throw new IedConnectionException("triggerGIReport service failed", error);
}
/// <summary>
/// Write changed RCB values to the server.
/// </summary>

Loading…
Cancel
Save