Usage of project global constants

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Usage of project global constants

983件の閲覧回数
samilaster
Contributor I

Hi All,

I want to show variables in FreeMaster as REAL values and Im wondering if it is possible to define the factor as project global constant.

In my example I would like to write ScaleCurrent instead of 0.00048828.

And somewhere else ScaleCurrent = 0.00048828.

Is this possible? What is the best way to do this?

pastedImage_1.png

Many Thanks in advance

Sami

0 件の賞賛
1 返信

928件の閲覧回数
MichalH
NXP Apps Support
NXP Apps Support

Dear Sami,

you can store the parameter in the target MCU application as a value of a constant variable. Then you may define a FreeMASTER variable to access that value - set its Sampling Period to "once" as it is constant anyway. Then you may use that variable as a parameter in REAL value transformation of other FreeMASTER variables.

Regards,

Michal

0 件の賞賛