Error 1527 When Running Test Using the LabVIEW Unit Test Framework from CLI

Updated Apr 7, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Unit Test Framework Toolkit

Issue Details

I am automatizing a LabVIEW test process using the NI LabVIEW Unit Test Framework toolkit. When I attempt to run the test from CLI (Command Line Interface) I get the following error:

 

Error 1527 occurred at an unidentified location

 

Possible reason(s):

 

LabVIEW: (Hex 0x5F7) Attempted to read flattened data of a LabVIEW class that is not currently loaded into LabVIEW.

Solution

To avoid this error you have to load the class(es) into memory before running the test, for this, you have to manually open the project containing the class(es). However, this is not an optimal solution if you want to have an automated process.

 

To have an automatic process you can create a wrapper VI that calls the class(es) and runs the test using the Run Test from Project VI, and then, run the VI from CLI. This will load both, the class(es) and the test into the same memory allocation preventing the above error.

 

Section RunVI of Predefined Command Line Operations, explains how to call a VI from the CLI and the conditions this VI must meet. Through the input terminal, we pass the parameters of the VI as an array, and the output terminals provide information about any error that occurred during execution.

 

Attached to this article you will find an example of a wrapper VI used to load the class(es) into memory and call the test. To execute this VI from CLI, use the following syntax:

 

LabVIEWCLI -OperationName RunVI -VIPath <VI path> <project path> <report path>

 

Remember to add all the classes used in the test into the wrapper VI.

Additional Information

The behavior described has already been reported as a bug in LabVIEW and it is documented in bugs ID 319649 and 166122.

Attachments