OTX Reference  
OpenTestSystem.Otx.Extensions.ComInterface.Actions.ConnectComInterface Class Reference

Establishes a connection to an interface More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.ComInterface.Actions.ConnectComInterface:
Inheritance graph

Public Attributes

ComInterfaceVariable comInterface
 Represents the handle of the communication interface which should be connected. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Establishes a connection to an interface

The ConnectComInterface action establishes a connection to an interface for diagnostic communication. It can be used for example to connect to an available ComInterface that is not allready connected or to reconnect to an ComInterface if the connection to it is lost. If the ComInterface is allready connected, nothing should happen and the ComInterface shall stay connected.

Note
The appropriate MVCI system operation is MCDInterface::connect().
Exceptions
Core.Exceptions.InvalidReferenceExceptionIf the ComInterface variable is uninitialised, or if the interface has been freed by a CloseComInterface action.
Exceptions.NotConnectedExceptionIf ComInterface can not be connected for any reasons.
Syntax
ComInterface.ConnectComInterface(ComInterfaceVariable comInterface);
ComInterfaceVariable comInterface
Represents the handle of the communication interface which should be connected.
Definition: ComInterface.cs:474
Examples
// Local Declarations
ComInterface.ComInterface ComInterface1;
// Flow
ComInterface.ConnectComInterface(ComInterface1);

Member Data Documentation

◆ comInterface

ComInterfaceVariable OpenTestSystem.Otx.Extensions.ComInterface.Actions.ConnectComInterface.comInterface

Represents the handle of the communication interface which should be connected.