NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I call Vee functions from TestStand ?

I wish to call Vee functions from TestStand steps.
I am using Vee 6.01 and TestStand 2.0.
0 Kudos
Message 1 of 7
(5,167 Views)
Hello,

TestStand ships with an example of how to call HP-VEE functions using RPC and VEE version 5. This example can be found in \Examples\VEE.

However, attached is an example that uses VEE's ActiveX interface to call VEE functions. Please have a look at this one and let me know if you need any further assitance. However, this example has been created in TestStand 2.0.1f1. Please do not open this file if you are using TestStand 2.0. Let me know and I can send you a earlier version of this file. Thanks! Hope this helps.

Bob
Message 2 of 7
(5,167 Views)
Hi Bob,

I am using 2.01, but had problem when trying to load your sequence.
Had Warning 'Sequence file computer.seq was saved by TestStand 3.0b1. Do you want to load it?'
I loaded it and had error message: 'Unable to read object; item name SF in section DEF, %OBJECTS.

Gerry
0 Kudos
Message 3 of 7
(5,167 Views)
Hi Gerry,

Sorry about that. Below is a sequence file created in 2.0.1f1. Please copy the contents of the zip file (previous attachment) into the folder \Examples\VEE\Using ActiveX (VEE 6.0). Please create this directory if it does not exist. The next thing you will need to do, is register the TestStand VEE server located in \Examples\VEE\Using ActiveX (VEE 6.0)\VEE_StepType.dll. To do this:

1) Select Start>>Run.
2) Type regsvr32 "C:\TestStand\Examples\VEE\Using ActiveX (VEE 6.0)\VEE_StepType.dll"

You should get a message saying that the registration was successful. You should now be able to run the example. Please let me know if you encounter any further problems. Thanks!
0 Kudos
Message 4 of 7
(5,167 Views)
Hi Bob,

Registered StepType, then loaded and ran sequence as sugested, but I am getting the following error on each step:-

Exception occured calling 'Execute_VEE_Step' in '_Execute_VEE_Step' of 'VEE_StepType'.
Object variable not set.

Gerry
0 Kudos
Message 5 of 7
(5,167 Views)
Hi Gerry,

Do you have HP-VEE installed on the machine that you are trying to run the code on? You need VEE version 6.0 installed on that computer.

Bob
0 Kudos
Message 6 of 7
(5,167 Views)
Hi Bob,

I have VEE Pro Version 6.0 running under Win2000.

Gerry
0 Kudos
Message 7 of 7
(5,167 Views)