04-24-2006 05:26 PM
I have a sequence that calls a sequence file ( decided at run-time ) and when that sequence ( only 1 in this file ) has a step that fails it is stored in the external program. What I'd like to do is create a new sequence ( on the fly ), "extract" ( copy ) the steps that failed from the sequence I ran to the new sequence, and run the new sequence. 1. Best way to do that? 2. What happens to the preconditions, preexpressions, postexpressions of the steps when they're copied? Thanks.
04-25-2006 02:08 AM - edited 04-25-2006 02:08 AM
Hi,
There is an example in the TestStand\examples\tools\ folder which should help you. Also in the Programmers Help.
There are some additional links which might also help (although these are for an early TestStand version):
Inserting a Step into a sequence
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DEA556A4E034080020E74861&p_...
You will need to use the Clone method rather than the NewStep and this should create a copy of your steps, including all the properties such as pre-conditions, pre-expressions etc.
also this example may helps, http://forums.ni.com/ni/board/message?board.id=330&message.id=2321&query.id=85838#M2321
but going a search in the forum will come up with other useful links.
Hope this helps
Regards
Ray Farmer
Message Edited by Ray Farmer on 04-25-2006 08:15 AM