I need to reload a VI through a front panel control. I want to obtain VI's path using the refnum to path function in order to reload the VI using Load and Run. There is an error although according to the context window both source and sink are of same type.
P.S already checked detailed explanation
To explain a bit possible reasons for this constraint:
References are first of all only pointers to some space in memory; that means, they are only numbers where the actual number is the address in memory of the data space the reference is pointing to.
That being said, most references are completly incompatibel to a "path" or a "string". So casting a reference to a path or string makes only sense for references pointing to file-based data spaces, aka "file streams".
VI RefNum is not necessarily a "file stream" as you can acquire a reference to any VI you haven't saved yet, but is in memory. So it must not be compatible to a file-based reference (like a file handle you get from "Open File").