LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My LabVIEW exe starts to run and then stops in Windows 7

I have built an executable in LabVIEW 2010 on a Windows XP machine and set the properties to be built for Windows 7 or later but when I try to run the exe on the Windows 7 machine the application starts up briefly and then stops running with no error message. Has anyone seen this? I have disabled the firewall on the Windows 7 machine.

0 Kudos
Message 1 of 6
(3,814 Views)

The information you are providing us is insufficient. We cannot help you if you do not tell us what your application does, what technologies are involved.

I am not aware that an exe can be build for special OS versions. I know this feature only from the installer.....

 

Some general questions:

- Are you sure that all code required is available (DLLs, dynamic VIs, ...)?

- Do you have an idea WHERE in your code the "stop condition" might be?

- What does "stop" mean? Does it hang? Close the window?

- Why do you suspect the firewall to be a source for this behavior?

- Do you have admin-rights on the system during execution?

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 6
(3,792 Views)

Hi wassa,

 

I would further recommend that you include error wiring throughout your application, and that you setup a debug executable to diagnose what is going wrong when you run your executable on the Windows 7 machine. You can find out more about debug executables at: How Can I Debug My LabVIEW Executable?.

 

With proper error handling and wiring and a debug executable, you should be able to isolate and address why your application fails to run properly on the Windows 7 machine.

Sanjay C.
Embedded Software Product Manager| National Instruments
0 Kudos
Message 3 of 6
(3,761 Views)

Ok fair enough, more information required from myself (sorry first post!) 

 

When I say "stop" I mean that the application window opens and then the window fades away while LabVIEW shuts down. I think that would be difficult to debug regardless of what error handling I have.

 

Thanks and regards

 

Tim

0 Kudos
Message 4 of 6
(3,756 Views)

 


@wassa wrote:

When I say "stop" I mean that the application window opens and then the window fades away while LabVIEW shuts down. 


 

Still trying to make sense of it all....

 

Why would LabVIEW shut down? Do you have the 2010 runtime engine installed?

0 Kudos
Message 5 of 6
(3,749 Views)

Hi Wassa,

 

It's very strange that your application window opens and then slowly fades away while "LabVIEW shuts down." Can you first verify that the VI itself runs properly on the development machine? Can you then build a .EXE and ensure that it too runs properly on the development machine? If we can get the .EXE working on the development machine you have two deployment methods:

1. If you are deploying to a computer that already has the LabVIEW Run-Time Engine and any additional drivers required for your application, then you simply need to copy the .EXE to the deployment machine

2. If you are deploying to a fresh computer that has no NI software, you'll need to create an installer. When creating the installer, you will need to look through the 'Additional Installers' sections and select any of the additional drivers etc. that are required for your application. By default, LabVIEW only includes the Run-Time Engine. If you are missing any of the 'Additional Installers,' the application will not run properly.

Sanjay C.
Embedded Software Product Manager| National Instruments
0 Kudos
Message 6 of 6
(3,724 Views)