LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open VI reference, problem on RT target

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.

0 Kudos
Message 1 of 2
(3,173 Views)

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

0 Kudos
Message 2 of 2
(3,150 Views)