01-25-2016 01:01 PM
Hi everyone,
I know how to tranfer data from TestStand to the Simple User Interface that comes with Test Stand (using UIMessages) but I am unsure how to transfer data from a control on the Simple UI to TestStand for sequence use. Is there an efficient way to do this?
Thanks so much!
01-25-2016 01:44 PM
When you post the UIMessage send the SequenceContext through the Object parameter. Then you can access and set any variable inside of TestStand.
Demonstrated in my attached image.
01-26-2016 08:37 AM
Hi Jigg,
Sorry for hijacking, but this is only working when sending a Ui-message from sequence at first.
... and it will never work when using the Sequence Editor instead, especailly if you like to use it as debugging tool.
I would like to know what kind of data should be shared here.
Maybe there is another solution here.
Regards
Juergen
01-26-2016 08:58 AM
Juergen,
How will the UI know when to send the data to the sequence file without the file requesting it? It can't just magically inject it. It doesn't know where in the execution flow you are. I mean it could figure it out, but what a pain. It's so much simpler for the sequence file to request the data when it needs it. Let the event handler work it's magic like it should. Any other way (and trust me I've seen them all) is a terrible solution in my opinion.
Also, you are less likely to hit race conditions if you use UI Messages. So you have more control over flow.
Your argument for the sequenc editor is a moot point. I don't think anybody expects to get the same behavior out of the sequence editor that they do out of a custom UI like this.
My 2 cents,
01-27-2016 01:01 AM
Hi Jigg,
i agree. I just what to figure out the moot point.
In my tasks speacially when putting a sequnece into operation i am glad to use the SequenceEditor.
It is just depending on the someones task.
There is a great acticle from Norbert_B at last German VIP Days, dealing with this topic.
http://natinst.de/2015/events/vip/downloads/mittwoch/test-and-measurement/1630_NorbertBrand_NI.pdf
I also noticed the moot point in his session. After the session someone gave me feedback, that is was
a good question. Because he had implemented a custom steptype, based on UI-Messages.
Late in the project they had to realize that they can not use the Sequnce Editor as debugger any more.
Spent time an money and pimp up UI as debugger....
Well as mentioned before: depending on the task
Regards
Juergen