LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a property to set the number of bits of a fixed point number?

The Properties that CC described for FXPs are labelled private so that is strike one against changing them dynamically (via Property Nodes).  Strike two is that they are only changeable during edit time anyway.

 

Strike 3?  There isn't one that I can see, so it should be possible to do what you want (big-time hack IMO).  I would strongly suggest you explore other options first.

Message 11 of 13
(741 Views)

@smercurio_fc wrote:

@chilly charly wrote:

 


tbob a écrit :

I'm curious.  How are you going to change the bit by bit representation.  I thought the compiler does this and that there is no control over this function.


Starting with LV 8.x, along with Integers, floats and complex, there has been a new category of numerics : the FPX (fixed point fractionals) .


 

Actually LabVIEW 8.5 was the first to have the FXP data type. Smiley Wink


I am amazed at how I continue to learn something new here almost every day.  I never even noticed the FXP data type.  Thanx guys.

- tbob

Inventor of the WORM Global
0 Kudos
Message 12 of 13
(728 Views)

Thanks Darin !

 

I needed to change the fixed-point binary representation of a control by scripting.

By enabling private properties (setting "SuperSecretPrivateSpecialStuff=True" in LabVIEW.ini), the property section "Fixed-Point Representation" appeared for Numeric and NumericConstant classes.

It surprisingly contains several usefull properties like binary representation and desired and actual range and precision delta.

I wonder why these were not made public for scripting 🤔 ?

0 Kudos
Message 13 of 13
(514 Views)