calculation only on simulation

Moderator: Benj

CSM2711
Posts: 43
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

calculation only on simulation

Postby CSM2711 » Thu Feb 14, 2019 1:53 pm

Hello,

i try to create a component for using the internal temperature indicator.
So i add a scale from -40 to 85. Inspilulation the value schoeld be multiplied with 22 but only in the simulation....
I try to realize this bay use the simultion Symbol but it wont work... The value in the application (on the µC) will also multiplied with 22.
Can somebody help me ????
Attachments
temperature.fcfx
(10.5 KiB) Downloaded 12 times

User avatar
Benj
Matrix Staff
Posts: 13939
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4221 times
Been thanked: 3976 times
Contact:

Re: calculation only on simulation

Postby Benj » Thu Feb 14, 2019 2:21 pm

Hello,

Try this instead.

temperature.fcfx
(10.52 KiB) Downloaded 14 times


I override the simulation macro for the exported component using the interface manager.

IntMan.png
IntMan.png (10.18 KiB) Viewed 312 times

CSM2711
Posts: 43
Joined: Mon Apr 16, 2018 10:28 am
Location: Germany
Has thanked: 1 time
Been thanked: 9 times
Contact:

Re: calculation only on simulation

Postby CSM2711 » Thu Feb 14, 2019 3:51 pm

Many Thanks !!!!
These users thanked the author CSM2711 for the post:
Benj (Thu Feb 14, 2019 4:56 pm)
Rating: 5.88%
 

User avatar
Benj
Matrix Staff
Posts: 13939
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4221 times
Been thanked: 3976 times
Contact:

Re: calculation only on simulation

Postby Benj » Thu Feb 14, 2019 4:56 pm

This might also be of use to you in future.

viewtopic.php?f=77&t=20958