08-18-2009 02:21 AM
I'm having problems opening references to VI's on my RT target (cRIO 9074 with NI-RIO 3.1.0, VI server enabled). I'm using Labview 8.6.1
What I'm doing is opening the reference using an absolute path ("c:\ni-rt\temp\test12.vi") to the VI I want to run (path is the only input that is wired). "Open VI reference" throws error 1124 (VI not loadable).
The VI that should be loaded only contains a while loop toggling a boolean indicator, no subVI's.
If I remove the VI from the specified path I get error 7 (File not found) when I run the code, so the path doesn't seem to be wrong.
I've tried running the"open vi reference" function on my host computer and on the target (both as an .exe and directly deployed) but the result is the same.
No error is thrown if I build an .exe and include test12.vi in the build, but I assume that in that case the VI has already been loaded when "open vi reference" is called. This is not a solution for me.
If I move both VI's to my host computer everything works.
Does anyone have any ideas about what could be wrong? I've searched to forum but found no solution.
08-19-2009 01:35 AM
Hi Sterlind,
Have you tried building a source distribution, the VI might depend on some VI:s from VI.lib or such.
This KB seems to suite your error description,
http://digital.ni.com/public.nsf/allkb/10F1D411ACBAD3D9862572FF0064C801?OpenDocument
Regards,
Klas Andersson
National Instruments
AE, Sweden