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

Activates the ethernet communication More...

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

Public Attributes

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

Detailed Description

Activates the ethernet communication

The ActivateEthernet action activates the ethernet communication on the selected interface.

Note
The appropriate MVCI system operation is MCDInterface::execIOCtrl(PDU_IOCTL_SET_ETH_SWITCH_STATE).
Exceptions
Exceptions.ActivateEthernetExceptionIf e.g. EthernetActivation is not supported by the selected ComInterface.
Core.Exceptions.InvalidReferenceExceptionIf the ComInterface variable is uninitialised, or if the interface has been freed by a CloseComInterface action.
Syntax
ComInterface.ActivateEthernet(ComInterfaceVariable comInterface);
ComInterfaceVariable comInterface
Represents the handle of the communication interface on which the Ethernet should be activated.
Definition: ComInterface.cs:624
Examples
// Local Declarations
ComInterface.ComInterface ComInterface1;
Exception Exception1;
// Flow
ComInterface.ConnectComInterface(ComInterface1);
try
{
ComInterface.ActivateEthernet(ComInterface1);
}
catch (ComInterface.ActivateEthernetException Exception1)
{
}

Member Data Documentation

◆ comInterface

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

Represents the handle of the communication interface on which the Ethernet should be activated.