Why "ObserverParams" property is empty eventhough the 'Function name' and 'Function paramater' are filled?

조회 수: 2 (최근 30일)
On the 'Instrumentation Properties' dialog box ,I have filled the function name and function parameter necessary for the signal which is logged.
Now when I try to get the ObserverParams,it is returning an empty strucure.
Can anyone help me with this?

답변 (1개)

Rahul
Rahul 2024년 10월 21일
Hi Praful,
I understand that you’re trying to find the “Data Access” Instrumentation Property of a Signal Marked for Logging in a Simulink Model, throughObserverParams” when using “Simulink.HMI.SignalClients” command in MATLAB Command Window.
The specified command simply creates an empty object of type “Simulink.HMI.SignalClients” which has a default property of “ObserverParams” as an empty structure and does not represent the currently logged signals or their data access functions.
In case you want to access the file path containing the data access function, you can manually include following lines of code in its implementation:
disp(['Function Name: ', mfilename]);
disp(['Function Path: ', mfilename('fullpath')]);
This could help in identifying the exact function being executed upon simulation, and its exact path. You can then access the function implementation by using open(filePath)’ function to open the function file, using the ‘filepath’ displayed in the command window.
For more information regarding data logging and accessing instrumented signals during simulation, refer to the documentation links mentioned below:

카테고리

Help CenterFile Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by