Panel Name

fwConversionConfig.pnl

Introduction

This panel is used to set up the message or command conversion configuration for one or many data point elements. If the panel is used for just one data point element at a time, the panel shows the current conversion configuration of the data point element when loaded.

Instructions

The panel can run in one of two modes. It can be used either to configure message conversion or command conversion. The title at the top left indicates which conversion is being configured.

When configuring the conversion for a data point element (or elements) you should first check the "Conversion ON/OFF" check box. Then the conversion options will appear.

Next, choose the conversion type that you require - you can choose either "Polynomial" or "Base Curve" conversion

For polynomial conversion, you need to choose the order of the polynomial you want to specify. Then you can fill in the text fields to describe the polynomial - where a is the 0th order, b is the 1st order etc.

For base curve conversion, you need to choose the number of points you will use the specify the base curve. Then you can fill in the text fields to describe the base curve - where x1 and y1 give the first point, x2 and y2 give the second point etc.

Once this is done, press OK or Apply to save the configuration.

To delete the conversion configuration on the data point element(s), uncheck the "Conversion ON/OFF" check box and then press either OK or Apply.

Restrictions

The only conversion methods supported are polynomial and base curve. These methods are only available for certain types of data point element. For example, no conversion methods are supported for boolean data point elements..

If you load the panel for a collection of data point elements, the panel will show only the conversion options that can be applied to all the current elements. So, for example, if the panel is used to configure a float element and a boolean element, the conversion will not be able to be configured because the boolean data point element does not support it. You can press the "Select Elements" buttons to choose which data point elements to configure from the list that was passed to the panel.

The panel can only read and write to conversion configs of data point elements if the relevant peripheral address driver number is running. If no peripheral address for a data point element is defined, then the SIM manager -num 1 must be running (this is running by default in a new PVSS project). If a data point element is configured with a peripheral address that has a driver number, say 7. Then a driver or SIM manager -num 7 must be running in order to access the conversion configuration.

 

Panel screenshot

 

Panel screenshot

 

 

Dollar Parameters
Name Description  
$sDpe

The name of the data point element(s) to configure.

If you wish to use the panel for multiple data point elements, you should pass a list in the same format as the PVSS dyn_string, i.e.dpe1 | dpe2 | dpe3

Required
$configType

The type of conversion you wish to configure. The following values are allowed (case sensitive):

msg - for configuring message conversion
msg_conv - for configuring message conversion

cmd - for configuring message conversion
cmd_conv - for configuring message conversion

Required
$bHierarchyBrowser

Controls the position and visibility of the OK, Apply and Cancel buttons.

TRUE - Shows Apply button only.
FALSE - Shows OK, Apply and Cancel button.

Required