The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
I use a simple interrupt to calculate the time difference. It works correctly and displays results in version 2022.3. However, when I compile the .c file in version 2023, there are some differences, and the execution shows incorrect results. How can I resolve this issue? (Arduino vision : 1.8.12)
Hi Robbert, as your code above shows, the problem was the introduction of a temp variable that holds the T2-T1 difference before T2 gets assigned the micros() result. This is due to a change that was made to the use count analysis in the code generator where an auto inserted convert between the fixed point sum and the integer long External Write to deltaT block got counted as a use in addition to the Extern Write block itself. Normally temp introduction does not affect code results, but obviously in this case it does. This will be fixed in the next update, but you can work around it by changing the type of the Extern Write to be the same scaledInt type as the sum output (fx32.32). Then no convert will be required.
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…
Join us for a community conversation to explore how different modeling approaches in Simcenter PSIM can help engineers simulate power electronics systems while balancing accuracy, simulation speed, and design insight. What you'll learn: Power transistor modeling : Thermal and high fidelity models Protection component…