Actions
Support Request #10133
closedChange active configuration after ADTF launch
Status:
Closed
Priority:
Normal
Customer:
BOSCH
Department:
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
Solved Issue
Product Issue Numbers:
Affected Products:
Platform:
Windows 10 64bit
Topic:
ADTF::Common
FAQ Links:
Description
Supportanfrage
We have an following requirement- [Existing] ADTF is launched with parameter(mentioning the active configuration) by an exe
- [Existing] An registered ADTF service which gets initialized will then control the RL State (Application, Running and XSystem) based on external trigger/event
- [Requirement] Is there a way after ADTF launch and RLState:XSystem, switch the active configuration to any one which exists, after which an RLState to Application and Running could be applied to the one configuration which is made active.
Lösung
I would recommend to use the Python Support Service and a script, which maybe does the same as your self-implemented service:- See also The ADTF Python Package
But if you want to do yourself within a service, you can set it using the ISessionManager interface... something like:
cObjectPtr<ISessionManager> pSessionManager;
RETURN_IF_FAILED(_runtime->GetObject(NULL, IID_ADTF_SESSION_MANAGER, (tVoid**) &pSessionManager, __exception_ptr));
RETURN_IF_FAILED(pSessionManager->SetActiveConfiguration("my_active_configuration", __exception_ptr));
You can also write an own application, see Creating a working combination of the Session and Filtergraph manager services
Actions