LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Built Application reports a missing vi

Hi all,
Using LabView 7.1, I built a small application on my PC using Tools/Build Application etc, a 'Single Target containing all VI's'. I tested it on the PC and it worked OK.
I transferred it to my laptop (both machines running Win XP, and the Laptop has the LabView 7.1 Run Time Engine installed).
When I try to run the application on the laptop it says "Missing subVI DAQmx Create AI Channel TEDS(sub).vi in DAQmx Create Channel (TEDS-AI-Voltage-Basic)vi."
I checked the 'Create AI Channel' vi in the vi.lib/DAQmx/create/channels.lib and it loads and it looks OK. I then tried saving that VI into the same directory as the application vi, so that it explicitly warned me it was loading that vi instead of the library version, so I knew it was explicitly loading the right vi.
I tried re-installing the run-time engine on the laptop, but I still get the same message.
Any ideas?  
 
Brian
0 Kudos
Message 1 of 8
(3,203 Views)

Hi,

 you'll need to install the driver onto the laptop, in this case ni-daq.

Building a single target won't include driver level calls..

Give that a try and let me know how you get on.

Thanks

Sacha Emery

National Instruments (UK)

 

// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 2 of 8
(3,176 Views)

Thanks for the reply - I did have NI-DAQ loaded on the laptop (a small detail I forgot to mention!), but I re-installed everything to make sure.

I notice that after I re-installed NI-DAQ Version 7.1 on the laptop, the Run-time engine (RTE) was version 7.0. It won't let me uninstall the 7.0 RTE, and tells me that it's required by NI-DAQmx 7.1 and NI-SWITCH 2.1.

I then re-installed RTE Version 7.1on the laptop, so I now have both 7.0 and 7.1 installed, but I still get the same error message when the application loads about 'Missing subVI DAQmx Create AI Channel etc". 

Does the above mean that it's trying to use the 7.0 RTE for an application build with LabView 7.1, and ignoring the 7.1 RTE?

Thanks,
Brian
0 Kudos
Message 3 of 8
(3,174 Views)
Hi,
  Are you using the DAQ assistant inside of these vi's?
If so, can you convert them to fixed layouts (right click the daq assistant and open front panel)
then try to build an application with that?
Don't worry about the LV RTE versions. Having more than one version on a machine isn't a problem.
I'm assuming you installed NI-DAQ 7.1 on the laptop since that was the version on the development PC?
On the laptop, do you have administrator priveleges with your current login?
 
Thanks

Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 4 of 8
(3,147 Views)

Hi -

(I tried converting to fixed layouts, but I still get the problem, in fact I get the error message twice now)

- I think I know what the problem could be. My PC appears to have NI-DAQ 7.2 loaded, and as I mentioned, the laptop has NI-DAQ 7.1.

We bought a DAQCard-6062E last year, which had NI-DAQ 7.1 supplied, and meanwhile I guess our IT group have loaded up the newer NI-DAQ 7.2 on to the network.

Is this likely to be the problem?

 

Thanks for the help,

Brian

 

 

 

0 Kudos
Message 5 of 8
(3,137 Views)
When you build the .exe file, are any other files generated?
 
I remember I had a similiar problem once and the reason was that when i built the .exe, a file called "lvanlys.dll" was created in a sub-folder.
When I put that file onto the PC with the .exe file it worked fine.
 
Hope this helps,
Ryan 
Ryan

LV 7.1
0 Kudos
Message 6 of 8
(3,128 Views)

Hi Ryan,

No, there isn't any other file generated (apart from the .ini file which appears when the application is run on the original PC).

Thanks,

Brian 

0 Kudos
Message 7 of 8
(3,113 Views)

(I reply to myself ...)

I installed NI-DAQ 7.2 on the laptop and the Apllication now runs without error messages. I don't get the same test results as the version running on the PC, but that's another problem.

I'll now scrutinise all the installed files on both machines and make sure that they're all at the same version!

 

Thanks for all the help,

Brian

 

 

0 Kudos
Message 8 of 8
(3,111 Views)