#10 DRVH limit not working for float records

None
open
Ralph Lange
None
5
2013-09-19
2013-08-19
Sinisa Veseli
No

Tag: 3.0-pre1
OS: linux, 64-bit

In those cases where db record definition does not allow it, users should not be allowed to set values higher or lower than operating range. For ints and doubles this behavior works, but for floats it does not.

Steps to reproduce:

1) run test IOC using st.cmd from pvaSrv/testApp/iocBoot/testDbPv

2) invoke pvput commands as in the examples below (in all cases DRVH and HOPR are set to <= 10). Note that pvput for floats actually works, while for ints and doubles it sets record value to DRVH):

bash-4.1$ pvput float01 1112
Old : float01 5.6
New : float01 1112

bash-4.1$ pvput int01 1112
Old : int01 1
New : int01 9

bash-4.1$ pvput double01 1112
Old : double01 5
New : double01 9.9

Discussion

  • pvaSrv (the implementation) should disallow such puts. This is not responsibility of pvAccess - pvAccess only provides means to report this.

     
    • assigned_to: Matej Sekoranja --> Ralph Lange
    • Group: -->
     
  • Reassigning.