05-04-2006 02:47 PM
05-05-2006 04:51 PM
05-08-2006 10:08 AM
Hello Tyler,
Thank you so much for your response and most helpful suggestions.
Attached in a word document is a screen shot of the GUI.
As you can see there are two panes for testing. Right now I have the open file button and combo boxes just so I could be able to open up sequence files. Then plan is to remove them and have the tests show up as programmatically set.
There are two SequenceViewMgrs and ExecutionViewMgrs as you pointed, and one ApplicationMgr.
Further on your suggestion my specific dilemma is:
1. ApplicationMgr.OpenSequenceFile("mySequenceFile.seq");
The above will allow opening only one sequence file and I actually have to open two separate sequence files, totally independant of each other, with locks to allow for resource sharing, to test two different products. How could I achieve this? Also, the sequence file or its steps are not really meant to be displayed (yet) and the sequenceviews that you can see on the GUI will actually only display the execution.
2. I am actually not sure how to assign the callback such that the execution event is capable of associating the ExecutionViewMgr control. I have tried to implement, by overriding, the DisplayExecution event handler, but it doesnt do what I want by using e.exec, because I have not made the association of or initialized such that e.exec corresponds to a particular ExecutionViewMgr. Question is, where would this association be made? Would I also have to override the generate event so that I can customize the e.exec property to hold the particular ExecutionViewMgr name?
Currently I have not set up a process model such that it will run two separate files in parallel, but once I can get the GUI to display results as desired, that would indeed be the next step.
Once again, thanks for your input.
05-09-2006 03:15 PM
05-30-2006 03:02 PM
NationalInstruments.TestStand.Interop.API.SequenceContext seqContext = e.exec.GetThread(0).GetSequenceContext(0, out frameID);
//convert property object
NationalInstruments.TestStand.Interop.API.PropertyObject seqContextPO = seqContext.AsPropertyObject();
//look up my index
int testSocket = System.Convert.ToInt32(seqContextPO.GetValNumber("RunState.TestSockets.MyIndex",0));
The above is as you described, but testSocket value always shows up as 0. I have set the station options and model options to run parallel testing of two sockets. As I mentioned, it works fine in Test Stand.
Any one seen this before?
Also, I was wondering if this occurs because basically there is one execution of the Main sequence, which then calls the other two sequences (seen as test steps. Even launching this in a new thread makes no difference). By the time the two separate sequence file precondition is reached, we have already established the e.exec to relate to a given execution view manager control.
05-31-2006 06:37 PM