Jump to content

Image Capture on O-Inspect


---
 Share

Recommended Posts

Hi everyone!

I wondered if anyone could offer information as to how to go about capturing a screenshot during a program on the Zeiss O-Inspect? The Zeiss trainer who showed us Optics and Curve wasnt too sure about his methods of doing this at the time and now my company would like to start using this feature. Any help or tips would be greatly appreciated!

Exactly what I need...
Create a program that can run like any other program but can also take a screen capture of a specific feature at a specific moment during the program.

Thanks! πŸ˜ƒ
Link to comment
Share on other sites

I just checked the old forum to confirm that I remember this correctly:
The PCM command saveViewToFile() should be able to do this and I clearly remember that I've used it once back then and it worked.

Well, a minute ago I tried it again in Calypso 2017 and it didn't work for me anymore. All I got was a white picture. πŸ˜•
Link to comment
Share on other sites

Here is what I got after a call with Zeiss support. I gave it a shot but cannot seem to find where the images are saved if in fact it is capturing an image. It does seem like it is doing something as the screen flashes multiple times, just not sure where it is putting them.

1. Open the measured feature that follows in a CNC run
2. Click Comment
3. In the comment area, right-click and click formula.


saveViewToFile(dateInNumbers()+" "+getRecordHead("planid")+" image "+getRecordHead("partnbinc")+".jpg","c:\temp\"+dateInNumbers()+" "+getRecordHead("planid")+" image "+getRecordHead("partnbinc")+".jpg")


4. Paste that phrase into the formula.
5. It will give you a warning about the formula not matching the β€œtext” type. Just press yes.
6. Run it, and it will take a picture of the last camera shot of the previous feature.
For instance, I want a picture of Circle1. Circle2 is the next feature. I put the phrase in the comment of Circle1.
If you want every photo of Circle1 saved, let’s say there are 4 circles which match quadrants: the only way I know how to do it would be to use 4 individual arc segments and recall feature points into Circle4. The viscan images would have to be in the postsettings of the recalled quadrant circles, or the comment of the following feature, a la the β€œNo PCM” trick.
Link to comment
Share on other sites

Please sign in to view this quote.

I'd start looking there for the files πŸ˜ƒ
What I don't understand is why this command seems to need the image name as the first parameter and the save path PLUS the image name again as the second parameter. At least this is what the syntax description in the old forum said too. Maybe I'll try that out if I have some time left this week.
Link to comment
Share on other sites

Ok, I just tested the saveViewToFile command on our O-Inspect.

Result: Capturing video images works in Calypso 2016, but not anymore in 2017!
Calypso 2017 deliberately disables the camera view before it saves the (CAD) image.

Link to comment
Share on other sites

  • 5 years later...
Hello. New to Calypso and have been trying to capture an image using the formula provided in this thread.

I have the 2022 version and it appears to only capture the cad view, not an actual image.

Is there a way to capture the picture or has this been totally eliminated from Calypso?

Thanks in advance!
Link to comment
Share on other sites

Please sign in to view this quote.

The latter (if you refer to the PCM command)
But you can always save an image from the Extras menu.

Update:
Here's some PCM code to save the camera image:
executeCode("Zeiss.Basics.OpticalExternals new IpSaveImage: 'C:\test.png'")
Note that this will only save the pure camera image, NOT any CAD elements.
Link to comment
Share on other sites

Update #2:

This one should save the whole CAD view, camera image plus CAD elements.
It basically saves a snapshot of the CAD window, like the corresponding item in the CAD menu does.
executeCode("Zeiss.Calypso.Acis copyToClipboard")
executeCode("Zeiss.Calypso.Acis saveToMiba: 'C:\test.jpg'")
Link to comment
Share on other sites

Please sign in to view this quote.

One of the worst thing Calypso do / is programmed - using a Windows clipboard - you can not do any work while CAD views are calculating and reporting. 😑 😑 😑
Link to comment
Share on other sites

 Share

×
×
  • Create New...