04-21-2009 02:59 AM
Hi, I have vision builder 3.0 and activex control that comes with it, now i have one question i need to select inspection based on barcode readings, can i somehow set inspection to target without oppening dialog or can i skip dialog and set path on my own?
Thanks!
04-21-2009 04:00 PM
Hey Teropod,
With ActiveX, you can do almost anything you want. It is just currently set up to have a dialog box. I believe you will want to change the original invoke node to Open Inspection instead of Show Inspection Dialog. Then you should be able to wire a filepath to the variant control.
I'll look into it some more if this doesnt work for you.
04-21-2009 04:01 PM
The above post was for LabVIEW...
Sorry about that, missed the VB part. Anyway, you are controlling a method, which is going to vary depending on what method you want to invoke. Same thing applies in VB.
04-21-2009 04:14 PM
09-22-2010 12:18 PM
I noticed that no answer was provided here. In case others are looking for this solution, you can open an inspection directly by replacing NIVBAITarget1.ShowOpenInspectionDialog with NIVBAITarget1.OpenInspection("c:\folder\file.vbai") where folder and file are the location and name of the script you are running.