LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 7 in Labview RT

Hi,
 
I'm using LabVIEW 2010 RT (eva version). I'm trying to open a couple of VIs dynamically on my LabVIEW RT machine. But whenever I run it, I am getting "Error 7" (file not found). I have tried to find the path of main VI and the path says C:\ni-rt\Startup\MainVi.vi. Now, when I try to replace the MainVI.vi with my SecondaryVI.vi (in the same path as above), I get Error 7 (file not found). Can someone tell me how to resolve this ?
 
Secondly, I tried to use Event structure in my MainVI.vi, but when I'm clicking on a perticular button (to generate event), the event is not getting generated in the RT machine and it keeps on executing the default state. What could be the problem ?
 
anticipating your kind reply
 
Regards,
0 Kudos
Message 1 of 2
(2,649 Views)

You might try using static vi references since they are always linked to your rt app.  Also you might try putting all of the dynamic vi's in a 'dynamic.vi' and then invoke them by string name.

Also in LV2010 you have packed libraries which simplify calling dynamic vi's that have subvi's in them.  In general think of an rt app as an exe with an internal file structure that is either flat LV8.1 file structure or heirarchial for native lv2010.  Regarding events, rt apps are headless and so do not support events.  For PC based HMI's use Network Shared variables bound to your HMI controls and indicators.

 

I have not tried this but you might also be able to place vi's or packed libraries in an external folder and then you will always have a correct path for them.

I think you would have to FTP them to your target.

0 Kudos
Message 2 of 2
(2,639 Views)