Error 1 Occurred at Open VI Reference

Updated Oct 16, 2024

Reported In

Software

  • LabVIEW

Other

LabVIEW

Issue Details

I am trying to run a VI that uses Current VI's Path as the input to Open VI Reference VI and I get

Error 1 occurred at Open VI Reference.

Possible reason(s):

LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.


Solution

This error occurs if you run the VI without saving it. If you use Current VI's Path make sure you have saved the VI at least once before running it.
 
 

Additional Information

Current VI's Path returns the location of the current VI. If the VI has never been saved then Current VI's Path does not have a valid value to return. If the VI has not been saved, it will be named at the top of the Front Panel and Block Diagram as Untitled X, where X is a number representing the number of VIs opened since the last restart of LabVIEW.