calculation only on simulation

Moderator: Benj

CSM2711
Posts: 44
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 21 times

User avatar
Benj
Matrix Staff
Posts: 14139
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4329 times
Been thanked: 4074 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 24 times


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

IntMan.png
IntMan.png (10.18 KiB) Viewed 528 times
These users thanked the author Benj for the post:
DrElmer (Fri Sep 06, 2019 5:13 am)
Rating: 5.56%
 

CSM2711
Posts: 44
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.56%
 

User avatar
Benj
Matrix Staff
Posts: 14139
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4329 times
Been thanked: 4074 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