01-21-2009 04:25 AM
Hello,
I'm using a testStand Sequence which call VBAI files. I used the tutorial 'Running a vision builder AI Inspection from TestStand' and it work fine.
What I want to do now is to pass parameters from TestStand to VBAI. For exemple, I have a global variable in TestStand which should tell to the VBAI file if VBAI must save the image to the Hard drive or not. I have another global variable in TestStand which give the path of the file and I want to pass this information to VBAI. What is the best way to do that ? I use TestStand 3.5, LabWindows/CVI 8.1 and not Labview
Regards
Laurent
01-22-2009 09:19 AM - edited 01-22-2009 09:19 AM
Hi and thanks to post on NI forum,
I suggest you to see this link: http://zone.ni.com/devzone/cda/tut/p/id/4007
Regards,
Aurélien J.
National Instruments France
01-22-2009 10:13 AM
That's the link to the tutorial I spoke in my first mail. I read it but I've not seen any answer to my problem.
Laurent
01-23-2009 02:39 AM
Hi,
At the end of this tutorial, you have activex method. You can open an activex control to control your VBAI so you will be able to send and receive and send variable.
Regards
Aurélien J.
National Instruments France
01-23-2009 05:59 AM
Sorry, but I'm not very comfortable with ActiveX. Don't you have an example which could help me to understand how I can do what I want ?
Should I use a step in TestStand with the Adapter ActiveX/COM ? If yes, what is the good automation server ?
In my VBAI file, I intend to create a variable with the 'Set variable' step. I want that that variable take a value given by TestStand. Any hints?
Laurent
04-21-2009 05:03 PM
04-22-2009 02:29 AM
Sorry, I didn't find any answer which could help you. In fact, I did what I want in a dll written in LabWindows/CVI
Laurent
04-22-2009 08:18 AM
I did figure out a way to pass images to VBAI. Basically, I use a "temp" folder in VBAI Simulate Acquisition and then in LV I move an image there from a user-defined source directory and then move the image back out of that directory.