Create test steps to record your test and measurement data.

What to Use

You can find the SystemLink Test Monitor and Configuration APIs on the Data Communication palette in LabVIEW 2018 or later.
Note The SystemLink Configuration API is available in LabVIEW 2016 or later.

What to Do

On the client, create the following code in a VI. The VI allows you to do the following.
  • Create test results and steps.
  • Run a test sequence.
  • Structure your data to render it correctly in the Test Monitor UI.
  • Acquire results.
The code is split into three images to highlight specific functions throughout the VI. You must add all the code captured in this topic to a single diagram in a VI.

Add the code in the following images to the diagram. Customize the gray sections for your unique programming goals.

Figure 1. Initialize and Create Test Results in SystemLink


Figure 2. Initialize and Create Test Steps


Figure 3. Collect Data, Update Data, and Test Results


  1. Open Configuration initiates a connection to SystemLink.
  2. Initialize Test Result configures a local reference of the new test result on the client test system.
    Note The local reference does not exist in SystemLink until you wire this VI to Create Test Result.
  3. The Property Node sets properties to the test result. You can see these properties in the Test Monitor UI.
  4. Create Test Result adds the local test result reference with the properties you set to SystemLink.
  5. Initialize Test Step From Result configures and associates a local reference of a test step to the test result you created.
    Note You must add the test result to SystemLink before you can associate any test steps with it. Therefore, call this VI after you call Create Test Result. The VI creates only a local reference to the test step. You must call Create Test Step after this VI to add it to SystemLink.
  6. Generate Named Value converts the data you want to add to the test step as a named value object. Wire Build Array to the named value this VI generates to format the test data.
  7. The Property Node sets the inputs for the test step using the named values the Build Array returns.
  8. Create Test Step adds the local test step reference with the properties you set to SystemLink. You can run a test VI after Create Test Step.
    Note In a more advanced test sequence, you might determine a standard VI prototype and load test VIs from a directory on disk.
  9. Build a cluster structure for the TestStand data model so data displays correctly in the Test Monitor UI. Refer to Structuring Your Test Data to create the subVI you need to display your data correctly in Test Monitor.
  10. Generate Named Value converts the test data into outputs. Wire Build Array to the named value this VI generates to format the test data.
  11. The Property Node reads the outputs and data for the test step.
    Note You must set the Data Model as TestStand for your data to display correctly in the Test Monitor UI.
  12. Update Test Step modifies the test step with the properties and data set by the Property Node.
  13. Update Test Result sets the result status based on the result of the test step. You can see the results in the Test Monitor UI.

Troubleshooting

Table 36. Troubleshooting Test Monitor UI Issues
Scenario Resolution
Your test data does not display correctly in the Test Monitor UI. Verify if your cluster structure for the TestStand Data Model object is correct. Refer to Structuring Your Test Data for more information.