05-03-2017 09:06 AM
I would like to use Register Event Callback Function to run a VI every time a Vision Builder for Automated Inspection(.vbai) file is saved. I am having problems identifying the proper event source reference to use. Is there an event that is generated when a .vbai is saved or at least a generic event when any file is saved? Also, in general what is the best way to Identify events that can be used in Activex and .Net?
Thank you
05-03-2017 01:02 PM - edited 05-03-2017 01:04 PM
What is the architecture of your application? Are you running a VI in LabVIEW in parallel with Vision Builder AI running in configuration mode? And you want that VI to know when the user saves the inspection in VBAI?
I don't think you can detect that with an event. Vision Builder does not send events to LabVIEW, and there is no framework in place to notify the user when an inspection is saved.
If you know in which folder the inspection is located, you can pull on that folder and get the file information VI from LabVIEW to detect new files or check the modification date of a file to know if it's been modified. When you detect a change, you can generate a user event. But there is no built-in event that will tell you when the user saves an inspection.
Christophe