This class is for accessing Seci via COM. The COM interface is registered when Seci starts and unregistered when Seci closes; this means if Seci is not running then the COM call will fail. All COM connections will go to the same instance of Seci rather than starting a new instance. More...
#include <ComInterface.cs>
Public Member Functions | |
ComInterface () | |
The constructor More... | |
void | DisposeCom () |
Unregisters the interface from COM. More... | |
void | InitialiseCom () |
Registers the interface with COM. More... | |
Public Member Functions inherited from Seci.Remoting.IComInterface | |
Boolean | SetRunControl (String blockName, Boolean value) |
Boolean | UnderRunControl (String blockName) |
Private Member Functions | |
int IComInterface. | AreYouThere () |
Test COM method. More... | |
Boolean IComInterface. | BlocksLoggingStatus () |
int IComInterface. | ChangeConfiguration (String configName) |
void IComInterface. | ClearGraphs () |
void IComInterface. | EnableBlocksLogging (Boolean enable) |
String[] IComInterface. | GetBlockNames (Boolean includeHidden) |
Method for getting Block names More... | |
String IComInterface. | GetBlockValueString (String blockName) |
Method for retrieving a Block's value. More... | |
String[] IComInterface. | GetConfigurations () |
object IComInterface. | GetRawBlockValue (String blockname) |
Method for getting Block value directly from LabVIEW More... | |
object IComInterface. | GetRawSetpoint (String blockname) |
Method for getting Block setpoint value directly from LabVIEW More... | |
String[] IComInterface. | GetVIsFullpath () |
Boolean IComInterface. | IsSeciBusy () |
Boolean IComInterface. | SetRawBlockValue (String blockName, Object value) |
Boolean IComInterface. | SetRunControl (string blockName, bool value) |
Boolean IComInterface. | UnderRunControl (string blockName) |
Private Attributes | |
int | _cookie |
RegistrationServices | _regServices |
This class is for accessing Seci via COM. The COM interface is registered when Seci starts and unregistered when Seci closes; this means if Seci is not running then the COM call will fail. All COM connections will go to the same instance of Seci rather than starting a new instance.
The ComInterface class. This class is for accessing SECI via COM. It was required that all COM connections would go to the existing SECI rather than starting a new instance. This is done by creating a COM visible class that contains a DotNet Remoting client that connects to SECI; so, essentially you have a COM visible object in SECI that talks to the rest of SECI via DotNet Remoting. It is not the most elegant method, but it is the only way that has worked so far. Note: connecting via COM gives access to the ReadWriteRemoting object.
Definition at line 21 of file ComInterface.cs.
|
inline |
The constructor
Definition at line 29 of file ComInterface.cs.
|
inlineprivate |
Test COM method.
Implements Seci.Remoting.IComInterface.
Definition at line 59 of file ComInterface.cs.
|
inlineprivate |
Implements Seci.Remoting.IComInterface.
Definition at line 170 of file ComInterface.cs.
|
inlineprivate |
Implements Seci.Remoting.IComInterface.
Definition at line 145 of file ComInterface.cs.
|
inlineprivate |
Implements Seci.Remoting.IComInterface.
Definition at line 140 of file ComInterface.cs.
|
inline |
Unregisters the interface from COM.
Definition at line 47 of file ComInterface.cs.
|
inlineprivate |
Implements Seci.Remoting.IComInterface.
Definition at line 165 of file ComInterface.cs.
|
inlineprivate |
Method for getting Block names
includeHidden | Include non-visible Blocks |
Implements Seci.Remoting.IComInterface.
Definition at line 79 of file ComInterface.cs.
|
inlineprivate |
Method for retrieving a Block's value.
blockName | The name of the Block |
Implements Seci.Remoting.IComInterface.
Definition at line 69 of file ComInterface.cs.
|
inlineprivate |
Implements Seci.Remoting.IComInterface.
Definition at line 155 of file ComInterface.cs.
|
inlineprivate |
Method for getting Block value directly from LabVIEW
blockname | The name of the block |
Implements Seci.Remoting.IComInterface.
Definition at line 89 of file ComInterface.cs.
|
inlineprivate |
Method for getting Block setpoint value directly from LabVIEW
blockname | The name of the block |
Implements Seci.Remoting.IComInterface.
Definition at line 99 of file ComInterface.cs.
|
inlineprivate |
Implements Seci.Remoting.IComInterface.
Definition at line 150 of file ComInterface.cs.
|
inline |
Registers the interface with COM.
Definition at line 36 of file ComInterface.cs.
|
inlineprivate |
Implements Seci.Remoting.IComInterface.
Definition at line 160 of file ComInterface.cs.
|
inlineprivate |
blockName | |
value |
Implements Seci.Remoting.IComInterface.
Definition at line 110 of file ComInterface.cs.
|
inlineprivate |
Definition at line 120 of file ComInterface.cs.
References Seci.Remoting.Bridge.GetLabViewValue().
|
inlineprivate |
Definition at line 115 of file ComInterface.cs.
|
private |
Definition at line 24 of file ComInterface.cs.
|
private |
Definition at line 23 of file ComInterface.cs.