NI Home > Community > NI Discussion Forums

NI TestStand

Showing results for 
Search instead for 
Do you mean 
Reply
Member
Arik
Posts: 15
0 Kudos

I would like to use a dll function in teststand. How do I pass parameters into this function that controls a tds210 tektronix scope via GPIB Interface.


In which way do I add the paremeters in teststand environment?
Could you send me an example please.
Thank you.
Arik.
Trusted Enthusiast
RayFarmer
Posts: 4,652
0 Kudos

Re: I would like to use a dll function in teststand. How do I pass parameters into this function that controls a tds210 tektronix scope via GPIB Interface.

Hi,

Find attached a small example which should help solve your question.

It's based on an example on the NI web site for TestStand.

The dll function receives two variables adds them and returns the answer back in the second parameter. Looking at the TestStand sequence, two variables are defined in the Locals Group called NumA and NumB. These are passed to the Step. This can be seen if you look at the specification of the step. ie select the step, right-mouse click and select specify module.., there you will see the link to Locals.NumA and Locals.NumB.

All you need to do is add your tds210 instrument function.

Hope this helps

Regards
Ray
Regards
Ray Farmer
Member
Arik
Posts: 15
0 Kudos

Re: I would like to use a dll function in teststand. How do I pass parameters into this function that controls a tds210 tektronix scope via GPIB Interface.

Thanks for the help Ray, I appreciate it.
Regards
Arik
Trusted Enthusiast
RayFarmer
Posts: 4,652

Re: I would like to use a dll function in teststand. How do I pass parameters into this function that controls a tds210 tektronix scope via GPIB Interface.

Hi,

Find attached a small example which should help solve your question.

It's based on an example on the NI web site for TestStand.

The dll function receives two variables adds them and returns the answer back in the second parameter. Looking at the TestStand sequence, two variables are defined in the Locals Group called NumA and NumB. These are passed to the Step. This can be seen if you look at the specification of the step. ie select the step, right-mouse click and select specify module.., there you will see the link to Locals.NumA and Locals.NumB.

All you need to do is add your tds210 instrument function.

Hope this helps

Regards
Ray
Regards
Ray Farmer