• Not Answered

Copy of SIGlobals contents

   Hello experts,

   Does anybody know how to copy the content from SIGlobals?

   The goal is to have 2 new SIGlobals (SIGlobals01 and SIGlobals02) with the same content from the original and customize according to the requeriments from costumer. I've created a new SIGlobals using the attached procedure and the NA-1000-0003 to copy the color table, but I couldn't copy the treshold table and other variables.

Thanks,

Samuel.

 

5 Replies

  • Samuel,

    You can just copy the original SIGlobals file, rename it and then modify the system tree file.

    The problem that you will have is that it will be difficult for you to control which set of code executes if they do have the same items within them.

    What are you trying to do that requires you to have this two SIGlobals requirement?

    Regards,
    Matt
  • In reply to Matt Stoner:

    Hi Matt,
    The goal is to be able to use the standard and a customized PCSD at same time (few differences from the original for different faceplates, i.e.) this is a requeriment from costumer.
    Is there any special way to copy the SIGlobals? I tried copy&paste, but is doesn't appear in the system tree or in VB in DeltaV Operate Configure mode. And if I follow the procedure I sent before, I cannot get the treshold tables and variables, only color tables and forms could be imported from the original.
  • In reply to Samuel Bandeira:

    Samuel,

    Why can't you use the User.fxg file to put the customized PCSD in instead of having two SIGlobals?

    You can export the VBA stuff and then import into the other file but thresholds and variables is a bit harder to do.

    Here is a quick logic you can put somewhere that will prompt for source, destination and the item to copy (Case Sensitive) and will copy (if found) the item from selected Source to the selected Destination.

    On Error GoTo ErrHandler
    Dim strSource
    Dim objSource
    Dim strDestination
    Dim objDestination
    Dim strObject
    Dim objCopy

    strSource = InputBox("Enter where to copy from", "Object Source")
    strDestination = InputBox("Enter where to copy to", "Object Destination")
    strObject = InputBox("Enter item in " & strSource & " to copy", "Object to Copy")

    Set objSource = System.FindObject(strSource)
    Set objDestination = System.FindObject(strDestination)
    Set objSource = System.FindObject(strSource)

    If Not (objSource Is Nothing) And Not (objDestination Is Nothing) Then
    Set objCopy = objSource.FindObject(strObject)
    If Not (objCopy Is Nothing) Then
    objCopy.Select
    objSource.Copy
    objDestination.Paste
    Else
    MsgBox strObject & " not found", vbOKOnly + vbCritical
    End If
    End If

    Set objCopy = Nothing

    Exit Sub
    ErrHandler:
    frsHandleError
  • In reply to Matt Stoner:

    Hi Matt,

      I tried to use your code, but I it didn't work (as long I'm not a specialist, maybe I did something wrong). But anyway, I used the "Write/Load User Globals" tool from DeltaV and with that I could export all tables and variables.

      I'm also using User instead a new SIGlobals, as you suggested. But I still cannot have both working at same time.

      I have the original PCSD_AI FP and X_PCSD_AI FO (which is a copy from original). Inside the X_PCSD_AI FP, I've changed the VBA code to use the USER (replaced all SIGlobals to USER) and also changed the reference to use USER (unchecked SIGlobals). I made changes in the USER color table to be able to see the difference on FPs, but when running DV Operate, both FPs (original and X) have the same alarm colors.

      Do you know if are there any other place to make changes in order the have the SIGlobals and USER running at same time?

  • In reply to Samuel Bandeira:

    Samuel,

    Did you double-click on the alarm activex control and change the color table there as well?