08-30-2007 02:12 PM
08-31-2007 12:07 PM
09-04-2007 08:29 PM
I am not asking Teststand to recognize the "Blank Part Numbers"; this is done is Labview. The same vi would also recognize "Real Part Numbers" and use that to determine the number of active Test Sockets.
All I want Teststand to do is allow me to control which TestSockets get activated. For instance: The are 6 active Testsockets, but they are all odd numbers 1, 3, 5, 7, etc. (These socket numbers are used in my application to power up specific DUTS)
That being said, I think your suggestion of "Locals.ModelData.TestSockets[x].Disabled" will also work. I can simply Disable any TestSocket that contains a Blank Part Number. I should be a ble to add a Sequence Context Property in my vi here.
Please let me know what you think.
Thanks for the help Pat.
09-05-2007 08:24 AM
09-07-2007 09:49 AM
Well good news Patrick. I got everything working, now I just need to figure out how to close the "disabled" testsockets.
You see, my application closes the acitve sockets in its cleanup section using "RunState.TestSockets.MyIndex; it then exits the Batch Process (cleanup portion of Batch process does run - only if Terminate button is pressed, I think).
I need a way to tell the Batch Process to close those disabled testsockets. I'll be working it today if you have any ideas.
Thanks again for the help.
09-10-2007 01:46 PM
09-10-2007 04:14 PM
Hi James,
Yes, I'm seeing something different. Once my test runs are complete, the active TestSockets are closed within the Batch Process Loop; however, the disabled Testsockets continue running and eventually hang the program because the app is "waiting" for those testsockets. The only way I've figured out to close these Disabled Sockets is to programmaticly terminate them. (I don't like this, though, as it doesn't allow the rest of my cleanup to execute correctly.
Hope this makes sense. i can send screen shots if needed.
09-10-2007 05:28 PM
Don't know if this will help but I'm doing something similar in my application. I'm using TestStand 4.0 and I have 17 test slots that can be populated in any order. I use a PreBatch callback in my client sequence to set TestSockets[ ].Disabled using a loop in a statement and an array that is generated by my user interface.
Parameters.ModelData.TestSockets[RunState.LoopIndex].Disabled = FileGlobals.SlotActiveArray[RunState.LoopIndex ]The disabled test sockets don't run at all in my application.
09-11-2007 10:07 AM
09-17-2007 10:54 AM - edited 09-17-2007 10:54 AM
Locals.Local is my array of Booleans indicating whether the Testsocket should activate or not.
Appreciate the help!
Message Edited by kevmi2ca on 09-17-2007 10:55 AM
Message Edited by kevmi2ca on 09-17-2007 10:55 AM
Message Edited by kevmi2ca on 09-17-2007 10:56 AM