Calling Legacy LabVIEW Code Modules

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

In versions of TestStand earlier than 3.0, you could call VIs only with a specific set of controls and indicators. Using TestStand 3.0 or later, you can call VIs with a variety of connector panes, including VIs with legacy configurations.

All legacy-style VIs must include the Test Data cluster and error out cluster indicators. The Input Buffer, Invocation Info, and Sequence Context controls are optional inputs to legacy VIs, which can contain any combination of these controls.

You must assign each control and indicator of the test VI to a terminal on the connector pane of the test VI. If these assignments do not exist, TestStand returns an error when it attempts to call the test VI. TestStand does not require that you use a particular connector pane pattern, and it does not require that you assign the controls and indicators to specific terminals.

Although you usually create new VIs using the LabVIEW Module tab for steps that use the LabVIEW Adapter, you can configure the LabVIEW Adapter to create legacy-style VIs.

You can use the following methods to pass data between the code module and TestStand:

  • Use the Test Data cluster
  • Use the sequence context ActiveX reference to call the TestStand ActiveX API functions to set the variables used to store the results of the test, such as Step.Result.PassFail
Note Note  The values the sequence context ActiveX reference sets take precedence over the values the Test Data cluster sets. When you use both methods to set the value of the same variable, TestStand recognizes the values the sequence context ActiveX reference sets and ignores the values the Test Data cluster sets.

You can use the sequence context ActiveX reference and the Test Data cluster together in the code module if you do not try to set the same variable twice. For example, when you use the sequence context ActiveX reference to set the value of the Step.Result.PassFail property and then use the Test Data cluster to set the value of the Step.Result.ReportText property, TestStand sets both values correctly.

See Also

LabVIEW Adapter Configuration dialog box

Legacy VI Settings dialog box

WAS THIS ARTICLE HELPFUL?

Not Helpful