Usage of project global constants

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Usage of project global constants

1,221 Views
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 Kudos
Reply
1 Reply

1,166 Views
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 Kudos
Reply