NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass a parameter up to the calling sequence?

Hi I am having trouble to pass a value back to the calling sequence in TestStand.
I would like to achieve it without using StationGlobals as it then becomes machine dependent.
 
Please help
 
Thanks.
 
Phillip
0 Kudos
Message 1 of 3
(3,002 Views)

Hey Phillip,

I created a small example that converts a Dog to a Cat and neuters it.  I am attaching it in 3.0 and 4.0 because I don't know what version you have.

So basically I pass my Pet to the subsequence and inside the subsequence I neuter the pet.  Well, you will neuter the pet or not.  Then I pass whether or not it was neutered back and also pass back the pet as a cat. 

Just run the example and you'll see what I mean.

Let me know if you have any questions.

Cheers,



Message Edited by ~jiggawax~ on 02-21-2008 05:32 PM
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Download All
0 Kudos
Message 2 of 3
(2,999 Views)
Hi Jigg
 
Thanks for your example, I figured out where I have done wrong.
I forgot to setup my parameter defined in the subsequence as a "by reference" variable.
It works fine now.
 
Thanks.
 
Phillip
 
 
0 Kudos
Message 3 of 3
(2,989 Views)