NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

copy container teststand labview

How can I copy a Teststand container in LabView.
In Teststand, I can simply do this with an expression like this:
"RunState.Sequence.Main["Numeric Limit Test"].Limits = RunState.SequenceFile.Data.Seq["Test_Sequence"].Main["Numeric Limit Test"].Limits"

I thought I could use the Get_Property(Object).vi and Set_Property(Object).vi but this doesn't work (TSAPI-errorcode -17335).

How can I solve this (simple) problem?
0 Kudos
Message 1 of 2
(3,378 Views)
Hi LVFan,

Looking at the error, it says that you must first clone the object because it has a parent. To do this, simply insert a call to PropertyObject.Clone and clone the reference you get from Get_PropertyObject. Then use the reference output of the clone method and pass it to Set_PropertyObject. This will work.

Bob
0 Kudos
Message 2 of 2
(3,378 Views)