NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Sequence arguments to an execution using a process model

solved.
I figured out how to pass sequence arguments through the process model.
thx to everyone

thx
Marcos V. Bischoff
0 Kudos
Message 11 of 13
(1,162 Views)
Hi Marcos,
 
That sounds good. But just for the members here and myself, too. How did you solve it ?
Please explain it in a few words.
 
Greetings from the Lake of Constance, Germany
 
Juergen
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 12 of 13
(1,153 Views)
How, did I to it?
"I enpowered my will and forced my binary slave to obey my commands." 😉
 
No, seriously. To problem was, as already mentioned in this thread, that the used process model did not pass the commands. Because the MainSequence callback did no call its subsequnce using any parameters. I changed that, for it passes a mere container to the subsequence. Waht made it a bit trickier, is that i wanted an universial solution not only for a defined set of parameters but for any set of parameters our sequence would need. Therfor I am filling the container within our faceless UI by using the TS API and adding to the ProcessModel.Sequence.Parameters (this.myProcessModelFile.GetSequence(0).Parameters) PropertyObject the needed container with the needed arguments. The trick is to deactivate the Flag (PropFlags_DontTypeCheckParameter–(Value: 0x80)) as for our need the processmodel has an nearly empty container (I added a count variable to detemine how many arguments it contains) and the sequence expects it's own formated container.
Actually that was it. The rest, how I determine which arguments to add, and so on  isn't part of the answer to the question anymore.
thx
Marcos V. Bischoff
Message 13 of 13
(1,146 Views)