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.
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: