Usage of project global constants

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Usage of project global constants

1,044 次查看
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 回复

989 次查看
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 项奖励