08-16-2021 09:31 AM
Hi all,
By default when we drop a complex numeric indicator (CSG, CDB or CXT) it displays the complex number are Re/Im
Is there a way to change to display format to display the complex number as r/theta?
Cheers
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
08-16-2021 09:47 AM
I don't think so, but you can always use a string indicator and do whatever you want with the parts. 😄
Or even do degrees. 😉
08-16-2021 10:06 AM
Ah well... Thanks for confirming what I was fearing.
I'll check if there is not already an idea in the exchange for this, and post one if not.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
08-16-2021 10:06 AM - edited 08-16-2021 10:09 AM
Of course having a complex control with R/theta is a bit more complicated.
On a tangential discussion, complex numbers are always internally represented as two floating point values RE/IM, while under certain applications it would be more useful if these two numbers would represent R/theta. Imagine that the complex number represents the direction and speed of a vehicle. As soon as the vehicle stops temporarily (speed=0) all direction information is currently irreversibly lost (RE=IM=0), even though it is still pointing in a very defined direction. With R/theta, the direction could be maintained. Currently, we need to program around that :).
08-16-2021 10:12 AM
@TiTou wrote:
I'll check if there is not already an idea in the exchange for this, and post one if not.
I doubt that LabVIEW would invent its own formatting codes. It might be worth searching the web if there is already prior art in other programming languages.
08-16-2021 10:16 AM
Hehe
My use case is more power grid than navigation, but yes, it would be helpful.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus