calculation only on simulation

Moderator: Benj

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

calculation only on simulation

Post by CSM2711 »

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 226 times

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

Re: calculation only on simulation

Post by Benj »

Hello,

Try this instead.
temperature.fcfx
(10.52 KiB) Downloaded 234 times
I override the simulation macro for the exported component using the interface manager.
IntMan.png
(10.18 KiB) Downloaded 1756 times

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

Re: calculation only on simulation

Post by CSM2711 »

Many Thanks !!!!

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

Re: calculation only on simulation

Post by Benj »

This might also be of use to you in future.

viewtopic.php?f=77&t=20958

Post Reply