Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
create a new block simscape

Subject: create a new block simscape

From: José

Date: 28 May, 2013 09:49:12

Message: 1 of 2

hi

How i can create a new block from a existent block?

I want create a new block modifying the code of the Switch controlled by external physical signal.

I want change "vT > Threshold" to "vT < Threshold".


Anyone familiar with Simscape, Please Help!

Subject: create a new block simscape

From: pietro

Date: 6 Jun, 2013 06:44:09

Message: 2 of 2

Hi Josè,

add the block you want to modify in your model, right click on it and select "view simscape source". Change the block equation to have the block desired behaviour. Then save it with another name. In this link, there is a good explanation for generating the block from the created code. That's it.

cheers

Pietro

"José " <jacr-adn@hotmail.com> wrote in message <ko1uio$imj$1@newscl01ah.mathworks.com>...
> hi
>
> How i can create a new block from a existent block?
>
> I want create a new block modifying the code of the Switch controlled by external physical signal.
>
> I want change "vT > Threshold" to "vT < Threshold".
>
>
> Anyone familiar with Simscape, Please Help!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us