|
|
@ -111,7 +111,10 @@ namespace IEC61850
|
|
|
|
static extern IntPtr IedConnection_getLogicalNodeDirectory (IntPtr self, out int error, string logicalNodeReference, int acsiClass);
|
|
|
|
static extern IntPtr IedConnection_getLogicalNodeDirectory (IntPtr self, out int error, string logicalNodeReference, int acsiClass);
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport ("iec61850", CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
[DllImport ("iec61850", CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern IntPtr IedConnection_getServerDirectory (IntPtr self, out int error, bool getFileNames);
|
|
|
|
static extern IntPtr IedConnection_getServerDirectory (IntPtr self, out int error, bool getFileNames);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)]
|
|
|
|
|
|
|
|
static extern void IedConnection_getDeviceModelFromServer(IntPtr self, out int error);
|
|
|
|
|
|
|
|
|
|
|
|
[DllImport ("iec61850", CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
[DllImport ("iec61850", CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern IntPtr IedConnection_getLogicalDeviceDirectory (IntPtr self, out int error, string logicalDeviceName);
|
|
|
|
static extern IntPtr IedConnection_getLogicalDeviceDirectory (IntPtr self, out int error, string logicalDeviceName);
|
|
|
@ -253,7 +256,17 @@ namespace IEC61850
|
|
|
|
ControlObject controlObject = new ControlObject (objectReference, connection, this);
|
|
|
|
ControlObject controlObject = new ControlObject (objectReference, connection, this);
|
|
|
|
|
|
|
|
|
|
|
|
return controlObject;
|
|
|
|
return controlObject;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateDeviceModel()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
int error;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IedConnection_getDeviceModelFromServer(connection, out error);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (error != 0)
|
|
|
|
|
|
|
|
throw new IedConnectionException("UpdateDeviceModel failed", error);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <exception cref="IedConnectionException">This exception is thrown if there is a connection or service error</exception>
|
|
|
|
/// <exception cref="IedConnectionException">This exception is thrown if there is a connection or service error</exception>
|
|
|
|
public List<string> GetServerDirectory (bool fileDirectory = false)
|
|
|
|
public List<string> GetServerDirectory (bool fileDirectory = false)
|
|
|
|