Hello Everyone,
Is there a way to control how many decimals are shown at the Field Value here? Everything on the instance is configured to 2 decimals, however, this seems to be fixed to 1. The faceplate that we have is derived from PCSD, but this part doesn't seem to be changed. Has this been improved in newer versions of PCSD?
The issue is when calibration places the module in Simulate and they would like to calibrate to the Field Value, it's not shown accurately enough.
Since this is using a field of the SIMULATE parameter you can't use the A_CVDECPT[OUT_SCALE] method. The only way to fix this and have it be dynamic is to write a script on the CFixPicture_Initialize event to update the format for that datalink but this will slow down the opening time of the display if you want to "calculate" the format (which I haven't shown).
I did a quick test on a main picture (sorry for the text distortion) using the below script.
fmtFieldValue_AI2.Format = "%5.2f"
The Positive number means that on the datalink the "Raw Format" box is checked, 5 is number of values to show and the .2 is number of decimals, so 5.2 is ###.## format. Note that the fmtFieldValue_AI2.Format will give you an error on initial save but after you save, close, reopen, compile/make a change and save the display again it will work properly.
Here is the view of two identically setup Field Values and link showing the datalink format in Blue with left one getting updated by script as described above.
Or the easiest thing to do would be to go to the datalink on the detail and change the format to always show 2 decimals.
PCSD has not updated this and still is the same.