Questions tagged [simulink-library]

Relating to block libraries of the Simulink visual programming language, which is a part of the MATLAB ecosystem, developed by MathWorks.

The Simulink visual programming language, developed by MathWorks as a part of their MATLAB suite of products, allows users to create visual model-based simulations of real-world system.

Simulink Libraries allow users to create custom, reusable block libraries, which turns user-create subsystems into reusable function blocks that can be updated in a single place, with those changes automatically propagating to all locations they are used in.

Libraries have a separate Simulink model file where a group of library blocks are stored and maintained as a group, which differentiates them from reference models and reference subsystems. Simulink also provides a Library Browser function that provides users a means of searching for and finding a particular library block among all available libraries.

24 questions
0
votes
0 answers

How to connect elements form different simscape sub-libraries?

Specifically, my group is working on thermal modeling of EVs i.e cabin cooling and battery cooling. We have used most elements from the two-phase-fluid sub-library of simscape. But at two connections we want a controlled separation of the…
rushi
  • 1
0
votes
0 answers

Matlab script declaring Simulink model variables

I was given the following protected Simulink model: It works manually (I click on "Run" on the Simulink GUI and it gives me the three outputs). I am writing a script using the Matlab SIMSET tool to define the necessary variables and to call this…
elle.delle
  • 328
  • 3
  • 15
0
votes
0 answers

Global variables between Base Workspace and Simulink in MATLAB

I'm currently struggling to achieve proper global communication between the variables in the base workspace of MATLAB (created by a init.m script), and some functions that are used in some Function Blocks in my Simulink scheme. The idea behind the…
FraTsuna
  • 1
  • 2
0
votes
2 answers

unreconized message type simulink ros message

I am trying to build a ROS controller using a custom message. I am able to run the model with no problem. Howeveer when I try to build and run the model it throws an error. Top model targets built: Model Action Rebuild Reason …
nagoldfarb
  • 66
  • 11
0
votes
0 answers

Create subsystem using Simulink: PWM output signal with current input signal

I don't have too much experience with MATLAB/Simulink, so I have a current signal in Simulink that I want to convert to a PWM signal, and I don't actually know the right way to do it. First thought is to create a subsytem to implement a frame model…
0
votes
1 answer

How do I unlock a Simulink library to make it editable?

Simple question - how do I unlock a Simulink (i.e. part of MATLAB) block library to edit it?
LightCC
  • 9,804
  • 5
  • 52
  • 92
-1
votes
0 answers

I'm trying to get a step graph using a function block and scope in simulink

I'm trying to to get a step graph from the following code: Someone pls help as this project is time sensitive. Simulink model Code: function y = fcn(~) tic; y = 0 pause(5); y = 1; pause(3); y = 0; pause(5); timeVal =…
-1
votes
1 answer

Simulink Stateflow: add invariants to state

Hi I am creating a hybrid automata model using Stateflow. I was wondering if it's is possible to add invariants to a state?
Addie
  • 31
  • 1
  • 1
  • 4
1
2