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 on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
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…