Hi Nom
As described here:
https://github.com/openpnp/openpnp/pull/1193
It is normal that exceptions are now thrown from scripts.
Exceptions were previously ignored, which could result in bad
machine misbehavior, because OpenPnP would get out of sync with
the controller.
In your case, this fix now exposed the underlying problem,
which is actuator coordination.
First Solution (recommended)
I see you seem to use scripts for lighting. So my first recommendation
would be to use the lighting that is now built-in and get
rid of the scripts.
It is easy to setup, you can reuse the existing actuator. You can
then also switch the lights ON/OFF from a symbol in the camera
view:
https://github.com/openpnp/openpnp/wiki/Setup-and-Calibration%3A-Camera-Lighting
The built-in lighting correctly runs the actuation inside a
machine task (it opens one shortly, if needed), so coordination
works properly.
You can still disable Actuator Coordination, which is actually something I recommend for lighting, because it will enable the light earlier (i.e. when the machine is still moving towards the camera/subject), which helps Camera Settling deal with camera lag, i.e. it will then not mistake a series of early "black" images as settled.
Second Solution (not recommended)
If you want to keep the scripts, you can do one of the following:
_Mark
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/0b993cd8-3495-4ca2-aa33-b52e7ea059c1n%40googlegroups.com.
> Should this be a separate thread?
Yes. But I'll answer anyway. :)
> I would like to ask why changing the Offsets for the Left Nozzle does it cause the Nozzle Tip in the Right Nozzle to become uncalibrated?
Calibration is relevant for the combination of nozzle
tip and nozzle, i.e. the same nozzle tip can be loaded to any
(compatible) nozzle and it can store the calibration for the
combination. So theoretically, the nozzle tip could already have
calibration stored for the other nozzle as well. It would be a
matter of what is configured for automatic recalibration, whether
this (now invalid) calibration could be reused.
https://github.com/openpnp/openpnp/wiki/Nozzle-Tip-Calibration-Setup#automatic-recalibration
OpenPnP would have to surgically remove just the needed
nozzle/nozzle tip combinations. That's way too complicated.
Instead it simply resets all nozzle tip/nozzle
combination calibrations. Furthermore, I think the same method is
used to invalidate for other invalidating reasons, like changing
the bottom camera position, so this is one central routine simply
resetting everything.
This is something you will hopefully not do many times on a
machine, so I think it is an acceptable simplification :-)
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/549d4809-9a5a-474b-9190-9ce2eeb94319n%40googlegroups.com.