LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we limit values for Fixed point control in between certain numeric range.

Hi there, I want to know that can we limit the values of a fixed point control in between 0 to 2.5. i am trying assigning limits to the control. while i was trying to  set data entry values (MAXIMUM and MINIMUM) are changing with "WORD LENGTH" and "INTEGER WORD LENGTH".   i want to set the "WORD LENGTH" and "INTEGER WORD LENGTH" from 2 bits for each respectively and then i am getting MAXIMUM ,MINIMUM and DELTA values are 0 ,3 and 1. can i set the data entry values from 0 to 2.5.

0 Kudos
Message 1 of 2
(2,065 Views)

Hi kiranteja,

 

to hold a value of 2.5 you need at least 3 bits: in binary display it would be "10.1". So you need to set a word length of 3 with an integer size of 2...

This also shows the other problem: that FXP will have a range of 0 to 3.5, so you need to limit the allowed input range otherwise...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,039 Views)