11-29-2018 07:48 AM
Hi guys,
I have a challenge to build test sequence (.seq) according customized xml file. I have been relating to TestStand example projects (<Examples\TestStand API\Building a Sequence Using API>).
However xml sequence will have plenty of sequenceCalls to external Sequence files (as drivers for instruments). Question is how to pass values which a described inside xml to external sequence of drivers.
According examples I should be using lookupStrings to set step configuration.
I am able to make such sequence calls by expressions dinamically however how to set them by design from xml script.
Attached you will find such functionality attempt inside xml file. Some parts are commented.
From the context you will see that I am calling external sequence called "_TIF.seq". External sequence has argument "parametras". My intention is to create sequence call with such argument.
Thank you in advance!
Karolis
12-04-2018 08:09 AM
Guys,
the only way I have found yet is to create SequenceCall step with expressions to external file using LookupStrings. Then with LookupStrings also define such step PreExpression values to load on runtime my parameters.
Parameters loaded using NewSubProperty function and the filling ActualArgs with my values from XML file.
Hope to hear better ways since my mentioned solution sounds and smells like workaround.
Best regards!