Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

VB 6.0 vision builder activex help selecting inspection without dialog

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!

0 Kudos
Message 1 of 5
(8,333 Views)

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.

Chris Van Horn
Applications Engineer
0 Kudos
Message 2 of 5
(8,318 Views)

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.

Chris Van Horn
Applications Engineer
0 Kudos
Message 3 of 5
(8,317 Views)
Thanks I found it.
0 Kudos
Message 4 of 5
(8,314 Views)

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.

0 Kudos
Message 5 of 5
(6,927 Views)