11-22-2019 01:01 AM
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.
11-22-2019 02:18 AM
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...