取消
显示结果 
搜索替代 
您的意思是: 

create executable(*.exe) file

已解决!
转到解答

I was able to create and executable file(*.exe) but it didn't include all neccessary libraries(*.dll), i.e NIVIsSVc.dll, imaq1349.dll .... So just wondering if some one could guide me to create an executable file with all neccessary libraries to run one different machine? I have LabView 8.2.1 and XP OS. My *.exe file is to capture an images from the camera(FirWire 1394) and save to a file on hardrive.

 

Thanks,

Shaun

0 项奖励
1 条消息(共 29 条)
7,039 次查看
Try creating an installer, including the run-time, after you create the executable and use that to install the program on the target machine instead of simply copying it over...even if the run-time is already installed.
0 项奖励
2 条消息(共 29 条)
7,030 次查看

I'd like add the following info to my previous posted message:

 

I've tried to used  an installer option to create and installion package but i ran into a problem under Addtional Installers option, this option is looking for a disk from D:\ drive which i don't have one. Any idea to work around this problem.

 

Thanks again

Shaun

0 项奖励
3 条消息(共 29 条)
7,029 次查看
When you use "Call Library Function" to call DLLs:
  • If the "Library Path or Name" contains a path, then when the application is built, a copy of the DLL will be placed in the "Support file directory" and the application will load that copy of the DLL.
  • If the "Library Path or Name" contains only the name, and not a path, then a copy of the DLL will not bundled with the application and it will be up to the OS to find the DLL. Thus, in order to do this, on both the development and target machines, the DLL must be in one of the following locations:
    1. The directory where the executable module for the current process is located.
    2. The current directory.
    3. The Windows system directory. The GetSystemDirectory function retrieves the path of this directory.
    4. The Windows directory. The GetWindowsDirectory function retrieves the path of this directory.
    5. The directories listed in the PATH environment variable.
0 项奖励
4 条消息(共 29 条)
7,001 次查看
The installer builder is looking for the disks you used to install LabVIEW and/or drivers and/or add-ons. Find those disks. Put them in you DVD drive when it asks for them and point the installer builder at it. It will then cache those components to your local drive and you should not have to insert the disk(s) next time.
Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 项奖励
5 条消息(共 29 条)
6,979 次查看

ajf200,

 

I've tried to create an installer package but it produce the same result. I can see all the dependencies and all the path but i still don't understand why the dependencies didn't get bundle with the *.exe file. I don't know what else to try. The *.exe alway looking for the NIVisSvc.dll first. I've installed the LabView run-time engine but that is no help neither. By the way, thanks for your responded/inputs

0 项奖励
6 条消息(共 29 条)
6,959 次查看
I've manually copy all the neccessary libraries into the same directory where the *.exe is resided. Now, when i run the *.exe , I got an error message saying "No supported languages installed". What else should I install? I see the supported languages is part of the executable build.
0 项奖励
7 条消息(共 29 条)
6,953 次查看

I would start the build process over.  First create an executable that includes all of the neccesary files (dll's and user made subVI's).  Also, select the supported languages that you will need.

 

Next we can build an installer.   When you build and installer, select the LabVIEW Run-Time and any drivers (IMAQ)that you need from the Additional Installers category.  When building this installer, you will be promted to find the location that you installed the drivers from.  It looks like from your previous post that this will be from a CD.  This installer should let you take your project to computers that do not have any NI software them.  I have provided a couple of links to tutorials on building executables and installers.

 

http://zone.ni.com/devzone/cda/tut/p/id/3303

 

http://zone.ni.com/devzone/cda/tut/p/id/5406

 

The second link is for DAQmx but it could be helpful.

Regards,

Jon S.
National Instruments
LabVIEW NXG Product Owner
8 条消息(共 29 条)
6,938 次查看

John S.

 

I problem is that i don't have the CD to install an additional drivers. Is there any way that I can work around this issues.

 

Thanks for your respond

Shaun

0 项奖励
9 条消息(共 29 条)
6,926 次查看
解答
接受人 SC1
SC1,

Unfortunatley LabVIEW is going to look for where the drivers were installed from. This is to insure that the same versions of the driver are in both LabVIEW and the installer you created. The best way to get around this in your situation is to reinstall the drivers from your hard drive. You can download the drivers from our website linked below. In the future if you plan on creating many installers, copy the contents of the driver CD onto your hard drive and install from there. I have made a product suggestion in the past to make this an easier process. If you would like this as well, please visit our product suggestion center linked below.


Drivers
http://joule.ni.com/nidu/cds/fn/p/lang/en

Product Suggestion Center
http://digital.ni.com/applications/psc.nsf/default?OpenForm
Regards,

Jon S.
National Instruments
LabVIEW NXG Product Owner
0 项奖励
10 条消息(共 29 条)
6,887 次查看