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

Closes the communication interface More...

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

Public Attributes

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

Detailed Description

Closes the communication interface

The CloseComInterface action is called when the diagnostic application has finished its diagnostic communication via a selected interface. This action closes the given interface regardless of whether it is the default interface or not. CloseComInterface has no influence on the ethernet activation state!

Note
The appropriate MVCI system operation is MCDInterface::disconnect().
Syntax
ComInterface.CloseComInterface(ComInterfaceVariable comInterface);
ComInterfaceVariable comInterface
Represents the handle of the communication interface which should be closed.
Definition: ComInterface.cs:547
Examples
// Local Declarations
ComInterface.ComInterface ComInterface1;
Exception Exception1;
// Flow
ComInterface.ConnectComInterface(ComInterface1);
try
{
ComInterface.CloseComInterface(ComInterface1);
}
catch (InvalidReferenceException Exception1)
{
}

Member Data Documentation

◆ comInterface

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

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