LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exe developed in LabVIEW executes faster in xp compared to win7

Hi,

 

I have developed a small applications. one is test exe and other is timer.exe.Timer exe calculates the execution time taken for test.exe( checks for test.exe in task manager and displays the execution time). The time taken to execute the test exe is around 2 secs in XP where as in Win7 its taking 4 to 5 seconds. Any ideas on why this is happening or how i could fix the problem?

 

 

0 Kudos
Message 1 of 7
(2,823 Views)

When does your benchmarking start? Is it "synchronized" to a special situation in your "test.exe"?

 

My guess is that one of the following (or any combination) is hitting you:

- More restrictive firewall

- Anti-virus software scans more intensively

- Restricted user priviliges

- Harddrive is less performant

- Less RAM

- 32bits vs. 64bits (WoW64?)

- Different LV version and/or different compiler options

- Depending on third party software which might induce delays

- Different CPU performance (e.g. for number crunching, CPU/ALU are possibly optimized for specific settings)

- ...

 

You see, there are too many possible factors for this behavior....

 

Norbert

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

What kind of task is performed by test.exe?

 

Marco

0 Kudos
Message 3 of 7
(2,807 Views)

Test.exe is a small appication which adds two numbers and exits LabVIEW.

0 Kudos
Message 4 of 7
(2,771 Views)

Might it be that the Win7 is 64 bit? If so, you'll start wow32 (or what it's called) as well as LV runtime. Your simple test program fills little purpose.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 7
(2,762 Views)

Is it polling the task manager a reliable way of measuring the execution time?

Try measuring the execution time inside test.exe (and writing it to a file...).

Is it still so differentì?

 

Regards,

Marco

 

0 Kudos
Message 6 of 7
(2,718 Views)

@swasa wrote:

Hi,

 

I have developed a small applications. one is test exe and other is timer.exe.Timer exe calculates the execution time taken for test.exe( checks for test.exe in task manager and displays the execution time). The time taken to execute the test exe is around 2 secs in XP where as in Win7 its taking 4 to 5 seconds. Any ideas on why this is happening or how i could fix the problem?

 

 


Your test is flawed if you measure from double click icon until finished, or do the program has some timing to measure time? Post the VI.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 7
(2,709 Views)