• Filter
  • Time
  • Show
Clear All
new posts

  • AutoCalibration

    Hi guys. I recently created a form in VB studio to be used for a front end GUI. I am currently creating a button for autocalibration. So in a nutshell this is what im doing. The operator will click on the autocalibration button and it opens up a file dialog box to navigate to whatever program they want to run. After they select the program I wrote a code to go into said program and find all the active tip angles in said program and it then writes them to a txt file on the desktop. After that, it opens up a program I wrote that pretty much just has a DO loop to open/read the text file with the tip angles and loops through each individual line/angle and calibrates them accordingly using the autocalibrate command, some IF/GOTO statements, and parameter sets. I have that working fluently, The problem is we use sooooo many different tip angles so this process would be extremely tedious and time consuming to do for every angle the machine is capable to index to. My question is, is there a way to assign a variable to a parameter set so I can just create one single autocalibrate command and loop through each line in my text file and assign that tip angle to both the tip command and parameter set? Or maybe an easier way than how i am going about doing this. Any help or direction would be appreciated. See attachment for my current program format.
    Attached Files
    Last edited by Gagedude127; 10-09-2020, 09:13 AM.

  • #2
    Good luck!

    I'm pretty sure you could pass a variable into the AutoCalibrate command for the parameter set, but you'd have to create a parameter set for each probe-tip angle combo, 720 I believe for a Renishaw head, 1000's for a Tesa head (maybe 10,000 for the 2.5° tesastar head) - and this would have to be done for each probe file!

    Now, within the VB automation language there are two Probe.Calibrate methods (or maybe Probe.Qualify - I forget which) which are meant to achieve what you want, HOWEVER, I have tried numerous times to get this to work without success.

    One method appears to work (I can select the required tips, the machine moves and looks like it's calibrating the tips, BUT the .prb files are not updated with the latest measurements)

    The second method will calibrate the tips and the .prb file is updated, BUT before this happens it asks if I want to calibrate all the angles (even though I've already made it select just the ones used in the program).

    The only way I got it to work (proof of concept only - never really finished it) was to do this...

    For each probe used:
    Write out all tip data to a text file
    Delete all the tips
    Add in just the tips used in that program
    Calibrate using the method above which asks to calibrate all tips and updates the .prb file
    After calibration add back programatically the tips which hadn't just been calibrated

    Automettech - Automated Metrology Technology


    • #3
      Yep! We have machines with the Renishaw head, and also machines with the Hexagon HH-AS8-T2.5. So I would be there for days creating all the separate parameter sets . And for every machine yet to boot . Haha have you ever messed around with the “calibrate single tip” command? I sort of got it to work , but I don’t know, there is just too much uncertainty there. Not sure I would feel confident enough using that . And for your last method, as long as you are grabbing the current active tips from each program that the operator would be running , would you have to write back the other tips ? Ugh you would think there would be an easier alternative then what there is. It would just be so convenient.


      • #4
        Good question - I think when I first tried it I was working to a customer spec and they wanted to be able to qualify all tips used in a program but not loose calibration data for other tips.

        Annoyingly it's just a bug in the automation language, if it worked it isn't overly complicated.

        Automettech - Automated Metrology Technology


        • #5
          Ahh that makes sense. Yeah I’ve found out that after you work with vb inside pcdmis for a little bit, it’s isn’t as complicated as it first seemed to be. But don’t get me wrong, it it weren’t for all the vb wizards on here posting examples and what not, I would be lost haha. Well I’m going to keep working on it . If I ever make any progress Before I just give up, I will post back to this thread. Thanks for the input!


          Related Topics