How to validate Electronic Signature using VBA

Hi, I am trying to validate a tag with Electronic Signature by using the ValidateSignatureAndWriteValue Method. I copied the example in the Automation Interfaces Help into the script of a Button in the graphics, but it did not work. It only pop up the message "Signature is not enabled on this node". I don't know which node did it refered to.

I am pretty sure that the node where the tag is assigned to is ES enabled because I am able to validate the ES when using the faceplate.

Thanks for help in advance.

Regards

Fooss

4 Replies

  • You have to enable electronic signatures in system preferences, then configure it for the system under "setup.. electronic signatures" in deltav explorer. See:
    http://socialkb.suite-sol.com/home/Emerson/DeltaV/Reduced_NEW_MasterBOL.ditamapExport-no-eps/Reduced_NEW_MasterBOL.ditamap?nav=x-19105#file267-c_configuring_electronic_signatures
    
    http://socialkb.suite-sol.com/home/Emerson/DeltaV/Reduced_NEW_MasterBOL.ditamapExport-no-eps/Reduced_NEW_MasterBOL.ditamap?nav=x-20106#file263-c_electronic_signature_properties
    
    fooss <bounce-fooss@community.emerson.com> wrote:
    
    

    Hi, I am trying to validate a tag with Electronic Signature by using the ValidateSignatureAndWriteValue Method. I copied the example in the Automation Interfaces Help into the script of a Button in the graphics, but it did not work. It only pop up the message "Signature is not enabled on this node". I don't know which node did it refered to.

    I am pretty sure that the node where the tag is assigned to is ES enabled because I am able to validate the ES when using the faceplate.

    Thanks for help in advance.

    Regards

    Fooss

  • In reply to Youssef.El-Bahtimy:

    Thanks Yousseff. I have already done that. I could validate the ES in DeltaV Operate, so I do believe that the node is already ES enabled. Just that, I dont know which node is the VBA referred to when it is executed.

  • In reply to fooss:

    Be careful, you also have to enable electronic signatures for each area. Right-click on an area in DeltaV Explorer and you need to tick a checkbox.

    I am not familiar with how VBA uses them, though.

  • In reply to István Orbán:

    Thanks Istvan, I have also enable the ES for each area.

    Anyway, I have managed to get the VBA working by using the DeltaV_ESig Class instead of the ESignature showned in the example.(I still dont understand why the ESignature Class dont work).

    Now, I would like to find out where to get the information/writeup for the 4 methods available in the DeltaV_Esig class ie. GetSignatureAndWriteValue, SignatureRequirement, ValidateSignature and ValidateSignatureAndWriteValue. There is no HELP for these methods in the VBA Editor.

    In short, please help to find out these 2 questions..

    (1) Where to find the writeup for the methods used in the DeltaV_ESig Class?

    (2) Which library should I referenced to to get the ESignature Class working?

    Thanks.