hexagon logo

Vision Crashes When Measuring Circles

Running PC-DMIS 2013 MR1 SP5 on Windows 7 PC connected to an Optiv Performance z443
------------------------------------------------------------------------
Hello!
I have several part programs that run though to completion using touch probes
I received a part that requires vision due to the crossholes (there are a lot) being generally too small

So I created the part program and was faced with many issues...
(Such as all of the numbers randomly changing by thousandths, leaving me to clean up everything with 0+0's!)

However, it is done, and I'm trying to check it, but it crashes at the first measurement.

Strangely enough, it worked before!

I have not been able to run this program all of the way through, it only crashes when it measures a crosshole.

The way the program is set up is it performs an alignment using the touch probe, then switches to the camera
The camera looks for a crosshole, and if it does not find it, it rotates 180° and tries again (where it will find it, or we made the part wrong!) Otherwise it continues as normal.

However pretty much since I added the "OnError" stuff it starts crashing at the hole.

I was able to verify that it works (the OnError) previously, and, upon this discovery, moved on to programming the rest of the part.
I needed to get the crosshole perfect or I couldn't measure the part, you see.

So it worked for a bit, but not anymore, and it keeps crashing. Strange!

I tried to measure a different hole in the same program, and had the same issue.

What's going on?
Parents
  • I can't provide a sketch of the part, but it is a simple and common feature, so a description should suffice.
    I am measuring the distance from the face of a cylinder to a hole. Alignment is fine, getting to the hole is fine, I can see the hole, I can see that PC-DMIS tries to check it.
    It looks like it crashes as soon as it tries to draw the green points around it.

    I keep attempting to upload an image of the construction of the hole measurement, but it crashes when I open it!!

    I have tried to adjust the number of points (I have point density set to HIGH, maybe changing to LOW or something would help?) but as soon as I try it crashes and closes PC-DMIS

    So here's the code for it, HTH
  • I feel I should mention that I have a program that does more or less the same thing (take point alignment, switch to camera, measure hole) that does not crash, however it also does not have 'on error'.

    I have plenty of programs that use vision and work no problem. I have tried removing the on error command, to no avail.
    I have tried checking different holes, which did not work
    I have tried creating a new circle entirely, which failed miserably.

    I'm not entirely sure what to do, but I'm fiddling with it now. Hopefully someone can point me in the right direction!
    Otherwise I'll post more of my findings as they are, well, found
Reply
  • I feel I should mention that I have a program that does more or less the same thing (take point alignment, switch to camera, measure hole) that does not crash, however it also does not have 'on error'.

    I have plenty of programs that use vision and work no problem. I have tried removing the on error command, to no avail.
    I have tried checking different holes, which did not work
    I have tried creating a new circle entirely, which failed miserably.

    I'm not entirely sure what to do, but I'm fiddling with it now. Hopefully someone can point me in the right direction!
    Otherwise I'll post more of my findings as they are, well, found
Children
No Data