Got Questions? Get Answers.
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:
constant pi in stateflow

Subject: constant pi in stateflow

From: Michal Lukac

Date: 10 Apr, 2012 12:10:10

Message: 1 of 3

Hello, does the stateflow recognize pi constant? If yes, how to use it in action?
I get an error (Unresolved symbols found) if I use it in state action e.g.: du: a=pi*t
thanks for help.
michal

Subject: constant pi in stateflow

From: checker

Date: 10 Apr, 2012 20:53:54

Message: 2 of 3

On Apr 10, 5:10 am, "Michal Lukac" <michal.lu...@fstroj.uniza.sk>
wrote:
> Hello, does the stateflow recognize pi constant? If yes, how to use it in action?
> I get an error (Unresolved symbols found) if I use it in state action e.g.: du: a=pi*t
> thanks for help.
> michal

You can add a data object in the SF data dictionary w/scope
'parameter' and name 'pi'. You can then use the parameter 'pi' in
your transition logic.

-Chris

Subject: constant pi in stateflow

From: Michal Lukac

Date: 11 Apr, 2012 07:03:30

Message: 3 of 3


> You can add a data object in the SF data dictionary w/scope
> 'parameter' and name 'pi'. You can then use the parameter 'pi' in
> your transition logic.
>
> -Chris


thank you...

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