Level-2 S-Function in Simulink subsystem
I’m working with a Level-2 S-Function in a Simulink subsystem and I would like to configure some parameters (IP, sample time) from the subsystem mask so that I don’t have to edit the Matlab code on every change, defining them into the S-Function as a variable. How can these parameters be passed to the S-Function?
The error I get is: "Cannot access data in ‘simulink_pr/Subsystem/ ‘. The probable cause of this error is accessing data that is available only when simulation is running"
Thank you very muchI’m working with a Level-2 S-Function in a Simulink subsystem and I would like to configure some parameters (IP, sample time) from the subsystem mask so that I don’t have to edit the Matlab code on every change, defining them into the S-Function as a variable. How can these parameters be passed to the S-Function?
The error I get is: "Cannot access data in ‘simulink_pr/Subsystem/ ‘. The probable cause of this error is accessing data that is available only when simulation is running"
Thank you very much I’m working with a Level-2 S-Function in a Simulink subsystem and I would like to configure some parameters (IP, sample time) from the subsystem mask so that I don’t have to edit the Matlab code on every change, defining them into the S-Function as a variable. How can these parameters be passed to the S-Function?
The error I get is: "Cannot access data in ‘simulink_pr/Subsystem/ ‘. The probable cause of this error is accessing data that is available only when simulation is running"
Thank you very much s-function, simulink, mask MATLAB Answers — New Questions