• Not Answered

Entering data

Hello Community

Does anybody knows how to  to write a parameter from supervision as a DDDD-MM-DD HH-MM-SS

because I want to enter a data from the analyzes with  the date and archive them afterwards.

Thanks in advance.

Butler Faith.

Best regards.

Butler faith.

2 Replies

  • Hi

    In your VBA code, simply add this line to write the String data into a String Prameter in your module :

        frsWriteValue Format(Date & " " & Time, "yyyy-mm-dd hh:nn:ss"), _
                      "DVSYS.MY_MODULE/MY_STRING_PARAM.A_CV"

    In this code, 'Date' and 'Time' respresent the current date and time (Wouah!).

    The Space + '_' symbol, at the end of the first line, is only there to allow you to continue writing the sentence to the next line.

    Remember : With this date and time format, you will not be able to calculate other date or time from this one.

    The only format used in DeltaV is international format (see explanation in the help about DTE = "Date Time Event" block in DV module - not easy)

    Regards - Jack

  • In reply to Jack_France:

    Hey Jack

    Firstly I would like to thank you for you response.

    I will try to use everything you have recommended and I will adapt it according to my need and see what it will give as result.

    Thank you for your

    Best regards.

    Butler faith.