Simple Math In PC-DMIS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simple Math In PC-DMIS

    Hello

    I am trying to Subtract 2 distances measured during a program to display on the report.

    The 2 distances are measured using 2 different fixtures thus different datum alignments.

    Is there a way in DMIS to use variable data measurements in calculations within the program and display them on the report?

    Regards

  • #2
    You could use an assignment.

    Something like this:

    ASSIGN/SUBSTRACT= (D1.MEAS-D2.MEAS)
    sigpicIt's corona time!
    737 Xcel Cad++ v2009MR1....SE HABLA ESPAÑOL

    Comment


    • #3
      How do i display the assinged value on the report?

      Comment


      • #4
        you can either use a comment or create a generic feature and in measured value place subtract, then simply dimention the generic feature


        ASSIGN/SUBSTRACT= (D1.MEAS-D2.MEAS)

        generic feature/point

        measureed (subtract, y,z)

        then create a dimention for X value of the generic feature: point
        Last edited by JoBLOCK; 01-08-2010, 01:20 PM.

        Comment


        • #5
          Just include the assignment name in a rept comment.

          example:

          COMMENT/REPT, " SUBSTRACTED DISTANCE IS: " + SUBSTRACT

          The actual value will be printed in the report.

          Hope it helps.
          sigpicIt's corona time!
          737 Xcel Cad++ v2009MR1....SE HABLA ESPAÑOL

          Comment


          • #6
            Thanks guys

            That helps me out big time.

            Regards

            Comment


            • #7
              Is there a way to select a vaule from a list of variables based on some set critirea.

              For example in EXCEL you can select the max vaule from a string of variables by executing the formula Max(D2-D3)


              Can I assign/v2 = max(dist3.meas, dist4.meas) or something like that?

              Thanks
              Last edited by charlesforth; 01-08-2010, 02:25 PM.

              Comment


              • #8
                Originally posted by charlesforth View Post
                Is there a way to select a vaule from a list of variables based on some set critirea.

                For example in EXCEL you can select the max vaule from a string of variables by executing the formula Max(D2-D3)


                Can I assign/v2 = max(dist3.meas, dist4.meas) or something like that?

                Thanks
                YES.

                ASSIGN/V100=MAXIMUM(V1,V2,V3,V4,V5,V6,V7,V8,ETC.) (or maybe just MAX, not sure)
                sigpic
                Originally posted by AndersI
                I've got one from September 2006 (bug ticket) which has finally been fixed in 2013.

                Comment


                • #9
                  i THINK ALL YOU HAVE TO DO IS

                  ASSIGN/V1= (D1.MEAS-D2.MEAS)

                  ASSIGN/V2=MAX (V1)

                  Comment


                  • #10
                    Originally posted by JoBLOCK View Post
                    i THINK ALL YOU HAVE TO DO IS

                    ASSIGN/V1= (D1.MEAS-D2.MEAS)

                    ASSIGN/V2=MAX (V1)
                    Gee, in your example, V1 only has one value, so there is no "max" or "min" value of that variable, only the value.

                    Another method is using an ARRAY, but it amounts to the same as my previous post.
                    sigpic
                    Originally posted by AndersI
                    I've got one from September 2006 (bug ticket) which has finally been fixed in 2013.

                    Comment


                    • #11
                      it wa just an example.

                      you can do ASSIGN/V1= (D1.MEAS,D2.MEAS)

                      ASSIGN/V2=MAX(V1)
                      ASSIGN/V3=Min(V1)

                      Comment


                      • #12
                        Originally posted by JoBLOCK View Post
                        it wa just an example.

                        you can do ASSIGN/V1= (D1.MEAS,D2.MEAS)

                        ASSIGN/V2=MAX(V1)
                        ASSIGN/V3=Min(V1)
                        And your example was wrong. Just as THIS one is wrong.

                        What you are now trying to do is make an ARRAY (which I mentioned in my post) and it needs to be
                        ASSIGN/V1=ARRAY(D1.MEAS,D2.MEAS) <---(assuming D1.MEAS and D1.MEAS are legal)

                        Examples are no good if they are not correct and will do nothing more than make RED ERROR highlights in the program.
                        sigpic
                        Originally posted by AndersI
                        I've got one from September 2006 (bug ticket) which has finally been fixed in 2013.

                        Comment


                        • #13
                          Originally posted by Matthew D. Hoedeman View Post
                          And your example was wrong. Just as THIS one is wrong.

                          What you are now trying to do is make an ARRAY (which I mentioned in my post) and it needs to be
                          ASSIGN/V1=ARRAY(D1.MEAS,D2.MEAS) <---(assuming D1.MEAS and D1.MEAS are legal)

                          Examples are no good if they are not correct and will do nothing more than make RED ERROR highlights in the program.
                          yeh, my bad it s'pose to be an array, you are CORRECT my fluffy friend

                          Comment


                          • #14
                            Originally posted by JoBLOCK View Post
                            yeh, my bad it s'pose to be an array, you are CORRECT my fluffy friend
                            Mikey, you should know by now that Matt is ALWAYS correct.... even when he was wrong the one time in his life he was right....
                            Xcel & MicroVal Pfx & Global 37mr4 thru 2012mr1sp3
                            Contura Calypso 5.4

                            Lord, keep Your arm around my shoulder and Your hand over my mouth. Amen.

                            Comment


                            • #15
                              Originally posted by dwade View Post
                              Mikey, you should know by now that Matt is ALWAYS correct.... even when he was wrong the one time in his life he was right....
                              That's not how it goes....

                              "Once I thought I was wrong, but I was mistaken"

                              "I once had an awkward moment, just to see what it was like."

                              "I have to live vicariously through myself"
                              sigpic
                              Originally posted by AndersI
                              I've got one from September 2006 (bug ticket) which has finally been fixed in 2013.

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X