hexagon logo

How to count those OoT's?

Hello everyone.

I know that many of You have or have had this wish, and many of You have found a solution.
None of them seems to work for me.

I'm running PC-DMIS 2012, and wonder if there might be some software "issues" with this version.

I have tried several of the proposals from the forum, to get the number of OoT out of the measurement, but none of your fine postings seems to work for me.
I have no problems running the script that refresh's the report before printing. So it can't be that.

I have managed to get the counting og the OoT's into the Report-header, and that works 100%, but no matter how I work around it, I can't get it into the program for working with it.

The reason for my frustration is : http://www.pcdmisforum.com/showthread.php?29932-Printing-reports-to-paper-pdf-and-SPC&highlight=paper
And for better understanding, my flow-chart is attached as 'Flowchart for PRINT, PDF & SPC'.

All of the 3 PRINT-functions are finally working just fine, thanks to:
http://www.pcdmisforum.com/showthread.php?29971-Report-Window-Print-Setup-Not-printing-to-correct-location
I get the Paper only, the PDF only and the combined Paper & PDF printed just as I have been looking for.

The above mentioned thread made me help setting up a guide, which is attached as 'Using the PRINT-command'.
Feel free to use and distribute.



Now back to my frustration.

I have tried using the script from AndersI, where he specific mentions that it works for him in PC-DMIS 4.3 MR1
His swedish setup, didn't gave me any trouble :-) , but it doesn't work.
Link: http://www.pcdmisforum.com/showthread.php?30251-Counting-OUTTOL-in-a-program&highlight=AndersI

--- o ---

The surgestions about reading from the ELOGO.DAT

ASSIGN/V1 = GETCOMMAND("File elogo", 1) my understanding - open file elogo, 1 to read in...
ASSIGN/PRINT = GETTEXT("# out of tol", 7,V1) my understanding - gettext or value of # out of tol on the 7th line from file V1 (elogo)

or from the footer

ASSIGN/V1 = GETCOMMAND(File footer", "TOP", 1)
ASSIGN/NC = GETTEXT("numouttol(), 1, V1)

or

ASSIGN/V1 = GETCOMMAND(File footer", "TOP", 1)
ASSIGN/NC = GETVALUE("numouttol(), 1, V1)

doesn't work for me ether.
Don't know if it's because I don't use the footer???

--- o ---

Does any of you have an idea of what's going on?

Isn't there a way to get the number of measures "Out of Tolerance" from my report-header after I have Refreshed it, and into the program, so I can make my flow-chart work, and save a lot of paper.

If anyone of You out there are able to guide me to a solution, I promise to upload my Master, so everyone can copy it, if they want to.


Thanks in advance, I know You have the solution, but maybe not my software-bugs..... Confused


Regards
Mykel
Parents
  • an example of what you are doing goes a long way for people to understand. You have quite a bit going on.
    How is the variable in the report being set? You say it is correct in the report (after doing a refresh which forces a re-evaluation of that variable). Yet you can't get the OOT script to work?

    There is an oldBasic interface for pcdmis which does grab the current number of out of tolerance values (reset at start of full execution). You could place this anywhere and get a running total any time during the execution.

    I know this does not help you but starting in V2013mr1 there is an expression:
    ASSIGN/V1=GETPROGRAMINFO("numoot","")
    which will return the current number of out of tolerance dimensions (same variable as the oldBasic script uses). And can be placed anywhere in the program to give a running total.

    what is meant by:
    When I run my program in Programmers mode

    Attached Files
Reply
  • an example of what you are doing goes a long way for people to understand. You have quite a bit going on.
    How is the variable in the report being set? You say it is correct in the report (after doing a refresh which forces a re-evaluation of that variable). Yet you can't get the OOT script to work?

    There is an oldBasic interface for pcdmis which does grab the current number of out of tolerance values (reset at start of full execution). You could place this anywhere and get a running total any time during the execution.

    I know this does not help you but starting in V2013mr1 there is an expression:
    ASSIGN/V1=GETPROGRAMINFO("numoot","")
    which will return the current number of out of tolerance dimensions (same variable as the oldBasic script uses). And can be placed anywhere in the program to give a running total.

    what is meant by:
    When I run my program in Programmers mode

    Attached Files
Children
No Data