NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Subfunction in visual basic script translate to teststand activex adapter

Hi
I'm using the activex adapter of TestStand with canalyzer from vector.
I want to build the same function in TestStand as in visual basic script.

Set Measurement = App.Measurment
App.Measurement.Start
result = myFunction.Call(3)
App.Measurement.Stop

Sub Measurement_OnInit()
Set myFunction = App.Capl.GetFunction("test")
End Sub

Is this possible to use in TestStand and how?
Thanks
Torsten
0 Kudos
Message 1 of 3
(3,259 Views)
hello Torsten -

When you say 'visual basic script' do you mean that you would simply like to use TestStand to talk to a piece of Visual Basic code? If so then yes it can be done and there are several good examples and discussion threads available to you via the NI Developer Zone to get you started. The process is to take your existing Visual Basic code and create an ActiveX Automation Server which can then be called from TestStand. I recommend you start by browsing the Example Program Database and seeing if this is something that you would like to implement.

-Regards

Elaine R.
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 3
(3,259 Views)
Hi Elaine,
sorry I didn't ask exactly.
I don't want to use Visial Basic.
I only want to use TestStand ActiveX adapter
and wanted to now if it is possible to do the upper
case in this.

Regards

Torsten
0 Kudos
Message 3 of 3
(3,259 Views)