NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Test Stand API in VBA

Hello,

 

I want to write a macro using VBA and TestStand API. I'm trying to get an Engine object. I created an TestStand Engine Class ActiveX control. In it's Sub procedure I have a following code:

Dim eng As Engine
eng.NewSequenceFile

This Sub I'm calling from another Sub and I'm getting an error: Object variable or With block variable not set. Do you know how it should be done?

0 Kudos
Message 1 of 2
(2,010 Views)

Hi,

 

Try using

Dim eng As New Engine

That should work.

 

Thanks,

Armen 

0 Kudos
Message 2 of 2
(1,915 Views)