09-11-2019 10:06 AM
Hi all,
I am trying to run a TestStand 4.1 sequence from a Labview 8.5.1 vi using the "NewExecution" method. This works: when I run the vi from TestStand, I get back to TestStand in the called sequence. Now I want to add parameters to the sequence call. The "NewExecution" method has a parameter "sequenceArgsParam" with datatype variant. How can i prepare the necessary parameters to go with the sequence?
09-11-2019 02:15 PM
Hello,
Pick a look on the online help about NewExecution Method :
sequenceArgsParam As Variant
[In] [Optional] Specifies a PropertyObject object that contains the arguments to the sequence you want to execute. Each subproperty of the PropertyObject object represents a parameter to the sequence. The subproperties must appear in the same order as the sequence parameters.
So I guess you will have to instanciate in LabVIEW a new PropertyObject (Engine.NewPropertyObject), add SubProperties according to your sequence parameters structure, and then wire the "top-level" PropertyObject reference to sequenceArgsParam input.
I'm curious to understand why you have to call a sequence from LabVIEW...
Regards,
09-12-2019 01:04 AM
Isn’t this just a Simple UI?
09-12-2019 03:13 AM
Thanks Ray for reading my mind, and saying it this simple.
It's been a long time I didn't spent time on these forums, I'm discovering the Code Exchange section, with examples. This one is probably a good starting point : Really Simple TestStand User Interface (Run a Test With a Single Button Press)
Note, I already faced use cases where I need to trigger from the UI a sequence wich is not related to any Entry Point. But that's very particular cases, and saying it clearly, I'm not really happy having to do it this way.
Regards,