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.
How can I control the numeric formatting and precision of the frequency values on the Notes description shown in Hyperview 2022.3 (classic interface), for example, from 3.390e+01Hz to 33.9Hz (see below)?
Thanks! Ricardo.
Hello @Ricardo_Assis
as mentioned in the support ticket, let me publically share below info:
In general when you format Templex expressions, you can use something like this
{entity.contour_val ,%0.10f }
But unfortunately the content of the Model Info note is not just a single number. There are development tickets already to have that improved for the future, but today you have to cut and convert the frequency number out of the full string, and then you can change the format.
These functions documented in our Online Help can be useful:
mid, strrchr, strchr, strlen, convert
As example from a Note:
This text in a Note
{window.simulationstep}
{a= mid(window.simulationstep,strrchr(window.simulationstep, chr(61))+4,strlen(window.simulationstep))}
a = {a}
{b=mid(a,0,strchr(a,"H"))}
b = {b}
{convert(b),%3.2e}
{convert(b),%3.2f}
will give this result:
Put into a single command it would look like:
{convert(mid(mid(window.simulationstep,strrchr(window.simulationstep, chr(61))+4,strlen(window.simulationstep)),0,strchr(mid(window.simulationstep,strrchr(window.simulationstep, chr(61))+4,strlen(window.simulationstep)),"H"))),%3.2e}
I hope this helps!
Regards, Sebastian Karp
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…