09-15-2011 12:47 AM
Hi,
I am currently customizing the full futured User Interface,
I have Master Test.seq which has all the tests and i need to run only the user selected test in UI.
so i thought of passing the user selected test form C# UserInterface code to Master Test.seq.
how can i pass the parameter value or is there any other way i can share data between USerINterce and seq file?
Thanks in Advance
IVI
Solved! Go to Solution.
09-15-2011 09:37 AM
UI Messages are the best way to do this:
http://zone.ni.com/devzone/cda/tut/p/id/4532
http://zone.ni.com/devzone/cda/tut/p/id/7560
Generally information flows from the sequence file to the UI. However, if you need to flow information back to the sequence file then pass the sequence context as a UI message from the sequence file to the UI. Once you have the sequence context in the UI you can then access Locals and FileGlobals and change them.
Hopefully this gets you started,
09-15-2011 10:35 AM
What you are doing sounds a lot like what interactive executions are for. You might consider using that functionality.
-Doug
09-15-2011 10:45 PM
Hi Doug,
can you please get me more information on intractive executions.
ThanKs
09-15-2011 11:21 PM - edited 09-15-2011 11:22 PM
IVI,
If you open the TestStand help and look for interactive execution there is a section about it.
The way I think about it is that it is an execution that runs without an entry point (i.e. it does not use the process model to run). However, the definition in the help is more accurate. If you were in the Sequence Editor and you right click on a step and say Run Selected Step then you are kicking off an interactive execution.
I think what Doug is saying is that it seems you have a sequence file with a bunch of sequences in it. You want the user to select a sequence and just run that sequence without using the process model or callbacks (MainSequence). Although Doug will have to speak for himself as he is much more knowledgeable than I am.
I think maybe if you explained your situation a little better then we could offer the right solution. The problem with TestStand is it is so customizable and open. The best thing about TestStand is that it is so customizable and open. In other words...You can get into trouble quite easily but on the other hand you can make it do some freakin' awesome things.
09-15-2011 11:25 PM
My requiremrnt is quite simple, i need to pass a data from OI to my MasterSequenceFile, any ways should be fine for me.
Thanks
09-16-2011 10:01 AM
Then you should use UI Messages. Interactive executions just start a new execution.
Read through the documentation I posted earlier and it should become more clear. Just know that you can only pass data from the sequence file to the UI. However, by passing the sequence context you can manipulate data in the sequence file from UI. Therefore you have access to data in your sequence file from the UI.
Cheers,
09-19-2011 12:42 AM
Hi,
I used below code to get acesst to the sequence file for setting value for a FileGlobal variable in TestMaster.seq
Engine myegine = axApplicationMgr.GetEngine();
SequenceFileseq= myegine.GetSequenceFileEx(@"C:\SelfTest\TPS\TestMaster.Seq", 0,TypeConflictHandlerTypes.ConflictHandler_UseGlobalType);
am getting error as "Array Index Empty" on using "GetSequenceFileEx" method.
can you please help me on this
Thanks
09-19-2011 09:18 AM
What happens when you try to open the same file in the sequence editor?
-Doug
09-19-2011 09:43 AM
it's opening properly.......
Thanks