10-31-2007 02:31 PM
11-01-2007 07:07 PM
11-01-2007 07:42 PM
11-01-2007 08:20 PM - edited 11-01-2007 08:20 PM
Message Edited by Matthew Kelton on 11-01-2007 08:22 PM
11-06-2007 12:42 PM
Hello,
Just to clean up the question: How do I make my control variables in an .exe file (which I developed through LabView 8.2) to be modified by TestStand calls to the .exe while it is open in real-time?
I think I may need to be brought back to basics here, but I don't find the LabView help file easy to follow for this type of setup. I have a .exe file developed through LabView, with a lot of boolean control variables, and want to develop a TestStand sequence that can open this .exe and edit the variables (On/Off) while the sequence is running. I know I have to make an ActiveX server, but unsure on how to do that. This is the first time I've tried to create an ActiveX server, so I apologize for being clueless. I've attached the GUI I've developed to give you an idea of what I want to do. I just want to enable it so when I build this into an .exe, TestStand can access and edit all the boolean switches.
Thank you greatly.
11-06-2007 01:55 PM
When you build the app, go to the Advanced category and select the box labeled 'Enable ActiveX Server'. I think you also have to set the installer you create to register the exe as an ActiveX server.
In TestStand, you should then be able to choose the ActiveX Automation Adapter. You will select the server you created, and then use the Set Control Value [variant] method of the VI class.
11-06-2007 02:17 PM
Ok, once I have the ActiveX file registered, and are trying to run it in TestStand, I only have two object classes (when specifying module for a TestStand ActiveX action): Automation & Virtual Instrument. Virtual Instrument has the SetPropertyValue and GetPropertyValue Call Methods, but how do I create a new object reference at first to perform these operations on? Only "Application" object class allows to "Create New" Object, but if I create an object in this "Application" class, the Virtual Instrument call methods I need to use will not work. I get the following error after I try to use Virtual Instrument Call Methods on an object reference created by "Application" Object Class.
Incorrect Object Reference type in 'Locals.guitest'.
A reference to an object of type 'VirtualInstrument' was expected.
Any help for this problem? TestStand is recognizing the Automation Server I have created, now I'm having problems trying to use it.
Thanks everyone.
11-06-2007 02:40 PM
11-07-2007 08:41 AM
11-07-2007 08:51 AM - edited 11-07-2007 08:55 AM