hexagon logo

Show Run Time on Report

Is there a way to report the run time on the reports?
i.e. "# of Hours =00:32:26"
I remember a few version ago it was on there but wasn't really concerned with it not being there. Well, I would kind of like it now... Disappointed
  • Search through old posts on this forum. There are several ways to go about this but basically you assign the system time to variables at the beginning of the program, assign it again at the end, do the subtraction, and assign the result to a variable that can either be published to the report using a comment or written to an external file to keep a running log of the machine's activity. I am 100% sure that there are code samples on this forum showing exactly how to do this.
  • Maybe I am misunderstanding, but...if you want to show the runtime of a program in your report... (the one you see at the bottom of the edit window) edit your report template and put in "=ELAPSEDTIME()" into a grid control object. (see report tutorials)
    Season to taste...
    To send/add the program runtime(s) to an appended log...I recommend what DaSalo said.
  • I found some old reports and the code at the end of the program appears on the report. ie

    END OF MEASUREMENT FOR
    PN=XXXXX DWG=XX SN=XXXX
    TOTAL#OFMEAS=40 #OUT OF TOL=2 #OF HOURS=00:04:44

    That all I am looking for, is to put this on the report like it used to.
  • Maybe I am misunderstanding, but...if you want to show the runtime of a program in your report... (the one you see at the bottom of the edit window) edit your report template and put in "=ELAPSEDTIME()" into a grid control object. (see report tutorials)
    Season to taste...
    To send/add the program runtime(s) to an appended log...I recommend what DaSalo said.


    +1
    add =ELAPSEDTIME() to your report template
  • adding =ELAPSEDTIME() would that be part/program specific or all programs run on that PC/machine report like that?
  • adding =ELAPSEDTIME() would that be part/program specific or all programs run on that PC/machine report like that?


    all programs that use your Report Template
  • all programs that use your Report Template


    how many Templates do you have?
  • how many Templates do you have?

    that's getting a bit personal, don't you think? Sunglasses

    for all the stuff you want to place in your report that is usually just in edit window....... here is the table:

    The following table details the equivalent Report Expression or report object to use and where to use it.







































































    .DAT # Keyword Functionality Equivalent Command in Report Template
    #DATE Inserts the current date. =SYSTEMDATE("MMMM dd, yyyy")
    #TIME Inserts the current time. =SYSTEMTIME("HH:mm")
    #PAGE Inserts the current page number. =Page()
    #TRn Inserts the value of trace field n, where n is the trace field number. =TRACEFIELD(n)
    #PARTN Inserts the part program name. =PARTNAME( )
    #DRWN Inserts the revision number. =REVNUM()
    #SERIALN Inserts the serial number. =SERNUM( )
    #SEQUENCE Inserts the sequence number. (Not applicable)
    #SHRINK Inserts the scale factor. =MEASSCALE()
    #NMEAS Inserts the total number of dimensions. =NUMMEAS()
    #NOUT Inserts the total number of dimensions that are out of tolerance. =NUMOUTTOL()
    #ELAPSTIM Inserts the time elapsed between start and end of execution. =ELAPSEDTIME()
    #BMP=bitmappath Inserts a bitmap of the specified full path and name. Use Bitmap object


    Yeah, I'm one of those types that searches 'HELP' all the time Rolling eyes
    What doesn't kill me (or crash the Demon) only makes me less of a dunce::::::

    bonus! joshmxz.... make a backup of your reporting folder, remove the 'read-only' attribute on all, then use those templates like your personal play-doh. tweak them all to h3II until you like result, and there you have it.........
  • Does it default for all programs or do I have to set it for each program, sorry if was confusing.
    I have 5 CMM's (2 - 7-10-7's and 3 - 12-22-10's) some programs run on all 5 some just on 2 and some on 3

    I am wondering if I can set it as a default for PC-DMIS to use my Template for all programs and not have to set each program to do so...