07-12-2006 09:20 AM
Solved! Go to Solution.
07-13-2006 05:53 PM
I have attached a screenshot of how to do it in LabVIEW. Basically you have to get the Foreground thread from the execution object. From this you can get the sequence context associated with that particular thread. Since this callback always executes right when a new execution starts, we can assume it will start off in one of the test socket entry points within the parallel process model. From here we find that the index of the testsocket is stored in Parameters.Testsocket.Index.
A couple of things to keep in mind are that you might want to add some code to allow for more than two test sockets to still be handled. This would be fairly simple to do with a case structure. You could have two cases, "0, default" and case "1". This way even if someone eventually adds another testsocket it will still allow it to be added to the top execution view.
Another thing you will want to keep in mind is that if someone sets a breakpoint in the Test UUTs execution entry point rather than the Test UUTs Test Socket execution entry point the method I have shown you here might not work. The reason for this is that Parameters.Testsocket.Index wouldn't exist in this context. If you think people might have the ability to do this, then you might want to add some code to check the name of the sequence that you are in. From here you could make sure you were within one of the Test socket execution entry points. You can check the name by getting the sequence property of the SequenceContext, converting it to a property object, and getting the name property from there.
Regards,
03-10-2012 03:04 AM
Hi
I am using Test Stand in Parallel mode for testing 2 UUT's. We use Simple Operator interface to run teststand sequence.
Requirement is to get the report of indivdual Test Socket 0( UUT 1) and Test Socket 1 ( UUT2) in in report viewer window of Simple OI.
Can someone please suggest what changes in Simple OI code are needed to achieve this.
Regards Vikki
03-12-2012 08:20 AM
vki,
You are more likely to get assistance if you start a new thread. Especially if your content isn't really related to the existing thread.
If you are new to the NI forums read here: http://forums.ni.com/t5/Feedback-on-NI-Discussion-Forums/Quick-Introduction-to-the-Forums-for-New-Us...
Regards,