LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Register Event Callback Function

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

0 Kudos
Message 1 of 2
(2,823 Views)

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

0 Kudos
Message 2 of 2
(2,771 Views)