NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Clone Variables (Locals and FileGlobals)

Hi !

Is it possible to clone variables ? 

I found the way to use the clone method with steps, but I can't find the way to do it with variables.

 

What I did is get the reference onto the 'Locals' in sequence (the reference is a PropertyObject). Then cloned this PO using the Clone method, which returns a reference on the cloned Object.

I have the reference of a sequence in another sequence file, in which I want to copy my variable. But I can't find any method from the Sequence class which would allow to add the cloned variables using the clone refrence.

 

Any idea ?

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 3
(3,670 Views)

I found a solution using the cast AsPropertyObject and inserting SubProperties with the correct lookup strings !

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 2 of 3
(3,662 Views)

Hi,

 

Clone is possible,

 

Just see these threads, there were some examples

 

http://forums.ni.com/t5/NI-TestStand/Repeating-a-Failed-Sequence-once-more/m-p/1042268/highlight/tru...

http://forums.ni.com/t5/NI-TestStand/Copy-result-container-why-do-I-get-a-property-types-do-not-matc...

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 3
(3,652 Views)