I wanted to run a VI script from MATLAB, and I looked up the Internet how to do so. I learned that if I used the following commands, I could run a VI.
e=actxserver('LabVIEW.Application'); vipath='c:\Documents\Labview files\test.vi'; vi=invoke(e,'GetVIReference',vipath); vi.Run
But this gives me an error.
Error using COM.LabVIEW_Application/GetVIReference Invoke Error, Dispatch Exception: Source: LabVIEW Description: LabVIEW: Open VI Reference no longer matches VIs in memory by filename. A filename is no longer sufficient because the full name of a VI now includes any owning libraries. Error in readColorVI (line 7) vi=invoke(e,'GetVIReference',vipath);
Does anyone have an idea what should I include apart from the file path to get the script running?
Thanks