Page 1 of 1

calculation only on simulation

Posted: Thu Feb 14, 2019 1:53 pm
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 ????

Re: calculation only on simulation

Posted: Thu Feb 14, 2019 2:21 pm
by Benj
Hello,

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

Re: calculation only on simulation

Posted: Thu Feb 14, 2019 3:51 pm
by CSM2711
Many Thanks !!!!

Re: calculation only on simulation

Posted: Thu Feb 14, 2019 4:56 pm
by Benj
This might also be of use to you in future.

viewtopic.php?f=77&t=20958