필터 지우기
필터 지우기

Select Signal in Bus selector via matlab function / script

조회 수: 1 (최근 30일)
Marcel Lohmann
Marcel Lohmann 2018년 6월 22일
답변: Marcel Lohmann 2018년 6월 24일
Hello everyone
I have the following example structure:
My goal is to read the input name of the subsystem and then use the name to search the bus selector for this signal. If the signal is present in the bus I want to create the path to the signal and link the output of the bus selector to this signal.
I already figured out how to create a cell of the bus: InputSignals = get_param(BusSelBlockHandle, 'InputSignals');
Here I built a function that searches input signals for Lightbulb and finds them. So I know that the signal is somewhere in the bus structure.
Can someone help me figure out how to create the path to the Lightbulb signal? The aim is, as already mentioned, to provide the output of the bus selector with the signal.
I'm looking forward to your suggestions.

채택된 답변

Marcel Lohmann
Marcel Lohmann 2018년 6월 24일
I found a solution.
Needed a function which calls itself. This function goes through the InputSignals and checks until the signal is found. On the way back to the to function I create my path.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by