Preparing Test Sequences for SystemLink Usage

Select example sequences or create a new sequence file and new sequences for SystemLink usage.

You can customize test sequences to simultaneously check test reports and test result data of multiple DUTs in SystemLink.

Selecting Example Sequences

Select example sequences for SystemLink usage, in the C:\Users\Public\Documents\National Instruments\Audio and Acoustics\Examples\TestStand 2019 (64-bit)\Seq_with Systemlink directory, based on your DUT type and measurements.

Creating a New Sequence File and New Sequences

If the example sequences do not meet your test needs, complete the following steps to create a new sequence file and new sequences for SystemLink usage.

  1. Create a new sequence file in TestStand Sequence Editor.
  2. Set the process model that the sequence file uses to the Batch model to create individual reports for multiple DUTs in parallel.
    1. Select Edit » Sequence File Properties to launch the Properties dialog box.
    2. Click the General tab and select All Executions Share the Same File Globals in the Sequence File Globals drop-down list.
    3. Click the Advanced tab and select Require Specific Model in the Model Option drop-down list.
    4. Select BatchModel.seq in the Model File drop-down list.
  3. Create callback sequences in the sequence file.
    MainSequence is automatically created along with the sequence file.
    1. Select Edit » Sequence File Callbacks or right-click in the Sequences pane and then select Sequence File Callbacks to launch the Callbacks dialog box.
    2. In the Callback Name column, select ProcessSetup and click Add. Alternatively, double-click ProcessSetup.
      In the Present column, no becomes yes for the ProcessSetup callback sequence.
    3. Repeat step b to add the PreBatch and ProcessCleanup callback sequences.
    4. Use variables of the FileGlobals type for callback sequences, which allows each callback sequence to access these global variables.
    The Sequences pane lists all the sequences in the sequence file, as the following figure shows.
    Figure 11. Sequences Pane

    1378

  4. Complete the following tasks to add steps and variables to MainSequence.
    1. In the Setup step group, leave it blank.
    2. In the Main step group, add steps that create report files and write report data. Set the type of steps that write report data to Pass/Fail Test.
    3. In the Main step group, add the Upload File step by selecting Step Types » SystemLink » Upload File on the Insertion Palette pane to upload the test result data to SystemLink Server. Add more steps in the Main step group based on test requirements and example sequences.
    4. In the Cleanup step group, leave it blank.
    5. Use local variables, such as serial number, test socket index, and report file name, to share data among steps of MainSequence. Refer to example sequences for more local variables.
  5. Complete the following tasks to add steps to callback sequences based on test requirements and example sequences.
    1. Add steps for setup, configuration, and initialization in the Main step group in the ProcessSetup callback sequence.
    2. Add steps that play, record, and analyze data in the Main step group in the PreBatch callback sequence.
    3. Add steps that clean tasks in the Main step group in the ProcessCleanup callback sequence.