OTX Reference  
OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.StopCommunication Class Reference

Stops the communication More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.StopCommunication:
Inheritance graph

Public Attributes

ComChannelTerm comChannel
 This element comprises the communication channel, which shall be used for stopping the communication with the ECU the communication channel is connected to. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Stops the communication

The StopCommunication action stops the communication on a diag:ComChannel.

Note
Important: In case an ODX/MVCI system is used, the ComPrimitive "StopCommunication" is executed on the logical link. In this case the logical link state is OFFLINE (see ComChannelState).
Exceptions
DiagCom.Exceptions.LossOfComExceptionIf communication to the ECU was interrupted during the stop communication process.
Syntax
DiagComPlus.StopCommunication(ComChannelTerm comChannel);
ComChannelTerm comChannel
This element comprises the communication channel, which shall be used for stopping the communication ...
Definition: DiagComPlus.cs:365
Examples
// Local Declarations
Exception Exception1;
DiagCom.ComChannel ComChannel1;
// Flow
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false);
try
{
[#DiagMetaData , <#Data>
<dmd:diagMetaData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dmd="http://iso.org/OTX/1.0.0/Auxiliaries/DiagMetaData">
<dmd:comChannelName value="LL_GatewUDS" />
<dmd:ecuVariantName value="EV_GatewLear_006" />
</dmd:diagMetaData></#Data>]
DiagComPlus.StartCommunication(ComChannel1);
<br/>
[#DiagMetaData , <#Data>
<dmd:diagMetaData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dmd="http://iso.org/OTX/1.0.0/Auxiliaries/DiagMetaData">
<dmd:comChannelName value="LL_GatewUDS" />
<dmd:ecuVariantName value="EV_GatewLear_006" />
</dmd:diagMetaData></#Data>]
DiagComPlus.StopCommunication(ComChannel1);
}
catch (DiagCom.LossOfComException Exception1)
{
}

Member Data Documentation

◆ comChannel

ComChannelTerm OpenTestSystem.Otx.Extensions.DiagComPlus.Actions.StopCommunication.comChannel

This element comprises the communication channel, which shall be used for stopping the communication with the ECU the communication channel is connected to.