OTX Reference  
OpenTestSystem.Otx.Extensions.DiagConfiguration.Actions.SelectProject Class Reference

Selects the MCD project More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.DiagConfiguration.Actions.SelectProject:
Inheritance graph

Public Attributes

StringTerm projectName
 Short name of the MCD project. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Selects the MCD project

The SelectProject action selects the MCD project using the given shortname.

Note
The appropriate MVCI system operation is MCDSystem::selectProjectByName.

If selecting or changing the active project is not possible a DiagConfigurationException is thrown.

Note
Important: SelectProject action closes all Diag:ComChannels. ComChannelVariables are no longer initialized.
Important: If OTX runtime system is running parallel to another diagnostic system that uses same base system the action can cause problems because in case of an MCD system only one project can be selected at same time.
Exceptions
DiagCom.Exceptions.UnknownTargetExceptionIf the project identifier provided by the ProjectName element doesn't exist or is invalid.
Exceptions.ProjectChangeExceptionIf the project cannot be set or changed for any reasons.
Syntax
DiagConfiguration.SelectProject(StringTerm projectName);
StringTerm projectName
Short name of the MCD project.
Definition: DiagConfiguration.cs:219
Examples
// Local Declarations
String String1 = "ProjectName";
// Flow
DiagConfiguration.SelectProject(String1);

Member Data Documentation

◆ projectName

StringTerm OpenTestSystem.Otx.Extensions.DiagConfiguration.Actions.SelectProject.projectName

Short name of the MCD project.