From: SAS on
Hi,
 
I added the following key to my application ini file and have added all dynamic code under this folder-  but this didnt help. I still getting file not found error.
"visearchPath="C:\test"
 
i have attached the sample exe which just loads any vi dynamically. Try to load a vi with subvis (keep subvis in a separate folder from the toplevel vi). You can see that the dynamically loaded vi couldnt find its subvi and is broken.
Thanks in Advance - I will appreciate your inputs
Sas


test.zip:
http://forums.ni.com/attachments/ni/170/320983/1/test.zip
From: MehakD on
Hi, Are you running this on a a computer with LabVIEW Development System or just LabVIEW real time?Try putting "C:\Program Files\National Instruments\<LabVIEW>\vi.lib instead of the Test directory. Also I would recommend you to always include the dynamically called VIs in your source files for the project.