01-18-2013 09:46 AM
I would like to have the number of sockets in an INI File, the User Interface would read the value from the file and set the Number of Test Sockets. I know it can be done by adding Callback Sequence, ModelOptions, to my sequence files and modifying the parameter. How would you do it in the User Interface?
Solved! Go to Solution.
01-21-2013 09:22 AM - edited 01-21-2013 09:24 AM
You could have the user interface read and edit the reportoptions config file like the process model does (see source code for modelsupport2.dll in <TestStand>\Components\Models\TestStandModels). But why do you need the user interface to do this? Why not just override the ModelOptions callback and do it there?
-Doug
01-21-2013 02:10 PM
Not a good reason the more I think about it. Other than making sure the ModelOptions Override is added to the Test Sequences, we will be creating multiple Test Sequences and the ModelOptions would have to be added to all of them.
01-21-2013 03:40 PM
You don't have to override it in every test sequence. You can override it in your StationCallbacks.seq file (located in <TestStand Public>\Components\Callbacks\Station). It will then get called for all process model executions on that machine.
-Doug