Custom graphic with up to 5 tags, need to control visibility if not all 5 are assigned.

I've created a multi-tag indicator that can display up to 5 PV indicators for 5 tags.

I would like to just have this single multi-tag indicator rather than creating three more (one each for 2-tag, 3-tag, and 4-tag) by controlling the visibility of unused PV indicators.  I was told that I might be able use the [_NOT_CONFIG_OK_] syntax but I can't seem to figure out how.

Anyone have any ideas on how to accomplish this?

2 Replies

  • You have a couple of extra characters in [NOT_CONFIG_OK]. What that does is that it prevents DeltaV Operate from generating an error when it doesn't find the specified path. Your syntax for that datalink might look like DVSYS.FI101/PV3.F_CV[NOT_CONFIG_OK] as an example. In addition, however, you will want to hide the PVs that aren't there. To do that, you'll have to add a script that runs in the edit event of the dynamo (or I guess optionally when the graphic loads, though this would typically only be used on module or detail faceplates). In that script, you would try to read the value of the 2nd, 3rd, 4th, and 5th tags, and if the frsreadvalue function returns a value of false, hide the datalinks by setting their visibility property to false.
  • You will probably want to use the [_NOT_CONFIG_OK_] datalink modifier and the [_I_QUALITY_] datalink modifier. The former would need to be used on the Data Source of the Caption property for each datalink to prevent an error message from displaying if the specified path is not valid (e.g., DVSYS.MODULE/PV.F_CV[_NOT_CONFIG_OK_]). The latter would need to be used on the Visible property for each datalink to hide the datalink if the specified path is not valid (e.g., DVSYS.MODULE/PV.F_CV[_I_QUALITY_] >= 128). The [_I_QUALITY_] datalink modifier will produce a value greater than or equal to 128 when the specified path is valid. The [_I_QUALITY_] datalink modifier will produce a value of 192 when the specified path is valid AND the value associated with the specified path is good.