Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I access the NIVBAIStepMeasurement(s), from LabVIEW

I am calling from LabVIEW code the Vision Builder for Automated Inspection, using the ActiveX objects.
 
How do I access the particular NIVBAIStepMeasurement and NIVBAIStepMeasurements, the help file for this is a flat structure, and it is hard to tell how to access the particular methods and properties that I want.
 
Is there a hierarchial view of the ActiveX objects for VB4AI anywhere?
 
Many thanks, A
0 Kudos
Message 1 of 4
(3,734 Views)
Hi A,

To see a hierarchy you can go to View>>Class Brower.  Then select National Instruments Vision Builder for the object, and you can then find the class that you are looking for.  I also am attaching a vi that shows how to get that measurement value.  Basically you have to first select the state and then once you have selected the state you can stelect the step.  I hope this helps.

Have a great day,
gg
Message 2 of 4
(3,717 Views)

gg,

Thanks for the help so far. I appreciate you getting into the LabVIEW, and creating code for me.  I have modified your code to get the step names, but I get a count value of zero, and so the For Loop never runs. Any chance you could take a look, and give me a pointer.

Many Thanks, A.

0 Kudos
Message 3 of 4
(3,713 Views)
Hi A,

You may want to run the code in highlight execution to see if you are getting an error before you reach Count.  (I am assuming that you used to have the count output wired to the For loop).  Also when you run the code does it display the name of the state?  If the state name isn't showing up it could be that the inspection isn't getting selected properly.  You may want to look at one of the activeX examples found at C:\Program Files\National Instruments\Vision Builder AI 3.0\ActiveX Support\Examples\LabVIEW.  Hope this helps,

gg
0 Kudos
Message 4 of 4
(3,697 Views)