Customizing the Behavior for Obtaining Lot Settings (TSM)
- Updated2025-04-10
- 3 minute(s) read
Customize how TSM obtains lot settings for a test program.
- ConfigureLotSettings callback sequence—TSM calls the ConfigureLotSettings callback sequence when you trigger the ConfigureLotSettings command in the TSM operator interface or the TestStand Sequence Editor. If you set the ConfigureLotWhenStartingLot property on the SemiconductorModuleManager object using the TSM Application API to true, TSM also calls this callback sequence just before execution begins, when an operator initiates the start of a lot using the Start Lot or Perform Single Part Test button. Use this callback sequence to launch a dialog box to prompt an operator to enter lot information or to retrieve lot information programmatically, such as from a database. The default implementation of the ConfigureLotSettings callback sequence launches the default Configure Lot Settings dialog box.
- ConfigureLotWhenStartingLot option—Set this property on the SemiconductorModuleManager object using the TSM Application API to true when you want to customize an operator interface to automatically retrieve lot settings at the beginning of the execution of each lot. When you start the execution of a lot, TSM calls the ConfigureLotSettings callback sequence, which you can configure to retrieve lot information programmatically, such as from a database. The default setting for the ConfigureLotWhenStartingLot property is False.
- GetLotSettings callback—TSM calls the GetLotSettings callback sequence as execution begins. Use this callback if you want to programmatically override a lot setting that might have been set in the ConfigureLotSettings callback sequence and you want to always do so at run time. The default implementation of the GetLotSettings callback sequence sets the LotSettings.Standard.JobName and LotSettings.Standard.JobRevision values based on the value of LotSettings.Standard.MainSequenceFilePath.
Complete the following steps to override the default ConfigureLotSettings or GetLotSettings callback sequence and customize the behavior for obtaining lot settings.
- Determine whether a sequence file named SemiconductorModuleCallbacks.seq exists in the <TestStand Public>\Components\Callbacks\NI_SemiconductorModule directory. If the sequence file does not exist, create it and ensure that it does not contain any sequences.
- Copy the ConfigureLotSettings or GetLotSettings callback sequences from the <TestStand>\Components\Modules\NI_SemiconductorModule\Templates\SemiconductorModuleCallbacks.seq file to the <TestStand Public>\Components\Callbacks\NI_SemiconductorModule\SemiconductorModuleCallbacks.seq file and make changes to the copy.
- To customize the default Configure Lot Settings dialog box in the
ConfigureLotSettings callback
sequence, complete the following additional steps.
- Copy the Display Configure Lot Settings Dialog step from the ConfigureLotSettings callback sequence of the <TestStand>\Components\Callbacks\NI_SemiconductorModule\SemiconductorModuleCallbacks.seq file to the ConfigureLotSettings callback sequence of the <TestStand><Public>\Components\Callbacks\NI_SemiconductorModule\SemiconductorModuleCallbacks.seq file.
- Copy the contents of <TestStand>\Components\Callbacks\NI_SemiconductorModule\LotSettingsDialogs to <TestStand Public>\Components\Callbacks\NI_SemiconductorModule\LotSettingsDialogs and make changes to the copy of the LabVIEW project. If you are making extensive customizations to the LabVIEW project, use the Debugging the Lot Settings dialog box to enable automatic testing when you makes changes to the lot settings.
- Rebuild the packed project library build specification in the project to update the copy of the LabVIEW packed project library.
Complete the following steps to change the value of the ConfigureLotWhenStartingLot property in the default operator interface.
- Copy the contents of the <TestStand>\UserInterfaces\NI_SemiconductorModule\<LabVIEW
or CSharp> directory to
the <TestStand
Public>\UserInterfaces\NI_SemiconductorModule\<LabVIEW
or CSharp> directory.
Note You must manually create the <TestStand>\UserInterfaces\NI_SemiconductorModule\<LabVIEW or CSharp> directory if it does not already exist.
- Modify the files in the <TestStand>\UserInterfaces\NI_SemiconductorModule\<LabVIEW or CSharp> directory to find a reference to the SemiconductorModuleManager object and set the ConfigureLotWhenStartingLot property to True.