LabvIEW Error 7 When Using Command Line Interface RunVI Command

Updated May 15, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Command Line Interface

Issue Details

I am trying to use the LabVIEW Command Line Interface (CLI) and want to use the RunVI command. When I do that, I get the error listed below. What do I do?
Error Code : 7 
Error Message : Open VI Reference in RunVI.lvclass:RunOperation.vi:5910001->CoreOperation.lvclass:CallRunOperation.vi:4230002->ExecuteRunOperation.vi:5250001->ExecuteOperation.vi:6900002->ExecuteOperation.vi.ProxyCaller<APPEND> 
VI Path: <b>C:\test.vi</b> 
An error occurred while running the RunVI operation. 

RunVI operation failed. 

Solution

Make sure that you are following the formatting in the Predefined Command Line Operations guide for the RunVI. A few things to remember:
  • The "Command line arguments for the VI" is a string array
  • The "CLI for LabVIEW exit code that the VI returns" will return either a 0, 2, or 3 depending on the circumstances. You will choose which value to output.
  • The "Output or error information to include in the CLI for LabVIEW console or log file" is a string