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.
Submitted by Joe on Wed, 09/07/2011 - 18:05
Hi,
In a constant block, when I type any value between 0x1 to 0x9, the output is in decimal, i.e, between 1 to 9. If I go beyond that, like 0x10, it shows 16 as output and so on. Why?
Submitted by Anders89 on Wed, 09/07/2011 - 18:18.
The constant blocks, like other VisSim blocks, accept C syntax. C uses a 0x prefix as indicating hex notation (a base 16 number). Base 16 can be useful when looking at bit patterns in binary words. Since 16 is a power of 2, each hex digit maps to the same 4-bit pattern shifted by 4*digit position. For instance, 0xF0F is 4 upper bits all 1, 4 middle bits zero and 4 lower bits all 1. This is handy when manipulating bits on an embedded target. Also, hex numbers are always integer typed. So prefixing with 0x is an easy way to create an integer constant in VisSim.
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…