• Not Answered

How can I change the default PHV trend colors in DeltaV v13?

How can I change the default PHV trend colors in DeltaV v13? The Options Chart Preferences does not have any way of doing this which I wished it did for simplicity.

6 Replies

  • I dont have the folder structure in front of me but if you do a search in your DeltaV folder you will find the default phve files used when you push the button on the faceplate. You can then modify those and the next time you pull up the trend it should use those new colors you saved.
  • In reply to Daugenet:

    Is there a default phve for chart builder? I see all the templates for modules but not for chart builder. I’ve opened each phve file to see the trend colors but none match the colors used by chart builder. Thanks for your replies.
  • In reply to Eddie Villarreal:

    Chart Builder uses the command line interface for Process History View (see BOL for details) to make a new chart with the parameters specified. Therefore the colours are the same as when creating a new chart in Process History View. I suspect these are fixed.

    If you open \Standard\PHVChartBuilder.grf in DeltaV Operate configure mode you can see how it works. It might be possible to change the code so instead of using a new chart, it uses an existing template which has your desired colours.
  • In reply to Cedric Dawnhawk:

    Cedric I looked at the CB code but nothing stood out that pointed to a template name parameter.
    Can you provide an example where in the code to specify a desired template to use?
    Thanks
  • In reply to Eddie Villarreal:

    The following modification to the PHVChartBuilder code provides a sort of solution. I've commented out the original code and inserted the new code shown. Note that PHVChartBuilder .grf is read-only so change this before trying to save it and preferably make a backup.

    Charts Rainbow.phve and Rainbow.phvc (or your more suitable names) have to be created in the Charts folder with the desired colours and other options. You don't need to specify any trend parameters.

    The disadvantage is that you can only create one chart at a time unless you save the chart with a different name.

    Regards
    Andrew


    Private Sub CreateChart()
    'Used to create the PHV chart or E+Chart. Is passed the chart type based on the button clicked.
    Dim idx As Long
    Dim ProgArgs As String
    strTrendPath = ""

    ' ProgArgs = "/new "
    ' If bmpEvents.SecondaryImageDisplayed Then
    ' ProgArgs = ProgArgs & "EChart"
    ' Else
    ' ProgArgs = ProgArgs & "chart"
    ' End If

    If bmpEvents.SecondaryImageDisplayed Then
    ProgArgs = "Rainbow.phve"
    Else
    ProgArgs = "Rainbow.phvc"
    End If
  • In reply to Cedric Dawnhawk:

    Thanks Andrew. I will try this solution you provided.