Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions vacApp/Db/vs_settings.req
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$(P)$(GAUGE).PREC

5 changes: 3 additions & 2 deletions vacApp/src/vsRecord.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,19 +270,20 @@ static long get_control_double(DBADDR *paddr, struct dbr_ctrlDouble * pcd)
******************************************************************************/
static long get_precision(const DBADDR *paddr, long *precision)
{
vsRecord *pvs = (vsRecord *)paddr->precord;
int fieldIndex = dbGetFieldIndex(paddr);

*precision = pvs->prec;
if (fieldIndex == vsRecordVAL || fieldIndex == vsRecordPRES
|| fieldIndex == vsRecordCGAP || fieldIndex == vsRecordCGBP
|| fieldIndex == vsRecordSP1R || fieldIndex == vsRecordSP2R
|| fieldIndex == vsRecordSP3R || fieldIndex == vsRecordSP4R) {
*precision = 1;
return 0;
}
if (fieldIndex == vsRecordLPRS
|| fieldIndex == vsRecordLCAP
|| fieldIndex == vsRecordLCBP) {
*precision = 2;
*precision = pvs->prec + 1;
return 0;
}
*precision = 0;
Expand Down
6 changes: 6 additions & 0 deletions vacApp/src/vsRecord.dbd
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ recordtype(vs) {
initial("5")
interest(1)
}
field(PREC,DBF_SHORT) {
prompt("Display Precision")
promptgroup(GUI_DISPLAY)
interest(1)
initial("1")
}
field(IG1S,DBF_MENU) {
prompt("Ion Gauge 1 Set")
promptgroup(GUI_ALARMS)
Expand Down
Loading