NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Copy result container - why do I get a property types do not match error?

I am creating a Teststand sequence that parses through the ResultsList and creates my own format of text reporting file. (I need to do this because our database needs the data in a very specific text format).  I am trying to copy a Result from a subsequence back up into the first level of the ResultList. (see attached screen shot for the details).  I use the following statement:
 

Locals.TestResultListLocalCopy[3] = Locals.TestResultListLocalCopy[1].TS.SequenceCall.ResultList[0]

When I execute the sequence I get the following error for the above line:
-17321; Variable or property types do not match or are not compatible.
 
As you can see from the screen shot that I took at run-time, both of the array elements are of type Result, so why do I get the type error?
 
Thanks for any help - LAW
0 Kudos
Message 1 of 4
(3,971 Views)

FYI - Attached is a very simple sequence file that generates the same error

LAW

0 Kudos
Message 2 of 4
(3,947 Views)

Hi LAW

I have rewritten your programm. I used the Methods Clone and SetPropertyObject from PropertyObject Class.

Test it.

I hope it was you are looking for

Greetings

Juergen

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

That works! Thanks!

 

LAW

0 Kudos
Message 4 of 4
(3,903 Views)