Change numeric format of recorder scale

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

Change numeric format of recorder scale

跳至解决方案
782 次查看
scotty
Contributor III

Dear Michal, FreeMASTER developers and power users,

I use a recorder to monitor the Unix time which is right now around 1684321580. These are ten digits.

Though the variable is an integer value, the scaling shows a decimal fraction with the suffix B (assumingly for "billion" = 10^9).

Is it possible to change the numeric format?

It would be nice to see all digits, preferably with some decimal separators, for example 1,684,321,580 (if the American style is used).

Take care,
michaeL

scotty_0-1684321526826.png

 

 

0 项奖励
1 解答
772 次查看
MichalH
NXP Apps Support
NXP Apps Support

Hello Michael,

the way the graphing component renders the Y axis is not easy to change.

I would recommend to post process the variable using linear transformation for example: (a=1, b=-1682892000) so you would rebase your Unix timestamp to May 1st 2023. This way the numeric values would be within a better range and should display better in graphs. 

Regards,
Michal

在原帖中查看解决方案

3 回复数
696 次查看
scotty
Contributor III

It works:

scotty_0-1685040963452.png
Here, I used an offset which is related to Thu May 25 2023 18:40:00 GMT+0000.

 

0 项奖励
761 次查看
scotty
Contributor III

Thank you, Michal, for your prompt response. - This solution sounds reasonable.

I will try it soon. (Today, here is a Holiday.)

Regards,
michaeL

0 项奖励
773 次查看
MichalH
NXP Apps Support
NXP Apps Support

Hello Michael,

the way the graphing component renders the Y axis is not easy to change.

I would recommend to post process the variable using linear transformation for example: (a=1, b=-1682892000) so you would rebase your Unix timestamp to May 1st 2023. This way the numeric values would be within a better range and should display better in graphs. 

Regards,
Michal