01-06-2023 08:22 PM
Hello everyone,
Recently, I find a problem about the loop time of compiled exe file.
PC system: windows 11 22h2
Labview: 2020 f2
I created a simple vi to see the loop times by using the default setting of the "time loop".
If I run in the vi state, these loop times are very stable around 50ms +- 1,2 ms.
However, when I compile this vi to be the .exe file, the loop times are very unstable.
The unstable situation is found after win10 21H2 was updated to 22H2.
I have tried to update windows and Labview. Also, to re-install runtime engines is done.
The problem is still there now.
Have anyone other suggestions for me? Thank you.
01-06-2023 09:46 PM
Windows OS is non-RTOS and hence it will NOT result in deterministic timing.
Timed Loop is intended for applications running on RTOS like pharlap or linux RTOS, it is not logical to expect it to work deterministically on regular Windows OS.
01-06-2023 10:40 PM
That would be fair santo_13 if they weren't running from the dev environment and the exe on the same system; same OS kernel and thread scheduling. Wouldn't expect that terrible of a performance difference between dev environment and the run-time especially on the same machine.
We've got someone in support that has Windows 11 on their system, we'll poke at it next week and see what we can find.
01-07-2023 03:14 AM
checkfu@itri.org.tw wrote:
Hello everyone,
Recently, I find a problem about the loop time of compiled exe file.
PC system: windows 11 22h2
Labview: 2020 f2
I created a simple vi to see the loop times by using the default setting of the "time loop".
If I run in the vi state, these loop times are very stable around 50ms +- 1,2 ms.
However, when I compile this vi to be the .exe file, the loop times are very unstable.
The unstable situation is found after win10 21H2 was updated to 22H2.
I have tried to update windows and Labview. Also, to re-install runtime engines is done.
The problem is still there now.
Have anyone other suggestions for me? Thank you.
You mention in one place that the PC is running Win11 and in another it is running Win10. The Win11/LV2020 combo isn't officially supported, and I read that the compatibility is more of an issue with Win10/Win11 than with most unofficial combos (although I still have trouble believing this to be the issue here). Which is it?
01-07-2023 10:21 AM
checkfu@itri.org.tw wrote:
The unstable situation is found after win10 21H2 was updated to 22H2..
Well, so Microsoft broke something. 😄
01-08-2023 07:35 PM
Thank you for your reply.
Due to the developed program, I find the compiled file on win10 21H2 is well done, and the loop time will stay around 50ms. But after I upgraded the PC sys to win10 22H2 and win11 22H2, the loop time of compiled .exe files will be unstable around 50~400 ms. So, I try to use the simple 3 loops to see what happened.
PC HW: i5-8265U, 16GB ram
However, I took the developed program (.exe) to another PC(win10 22H2, labview 2013 installed, 2015 2017 2018 2019 2020 sp1 run-time installed),
in the beginning, the test .exe file can stay around 50ms, after I closed and re-run the same .exe. file,
the same unstable result would be saw again.
PC HW: i7-6500U, 16GB ram
01-08-2023 07:45 PM
@billko 已寫:
You mention in one place that the PC is running Win11 and in another it is running Win10. The Win11/LV2020 combo isn't officially supported, and I read that the compatibility is more of an issue with Win10/Win11 than with most unofficial combos (although I still have trouble believing this to be the issue here). Which is it?
I found the problem after I upgraded win10 21H2 to win10 22H2.
The loop-time of the .exe test file stays unstable in 50 ~ 400ms.
However, I tried to remove and install LV2020 and Run-time engines (19sp1 ~ 22Q3 f1).
This issue can still be there.
So, I upgraded win10 22H2 to win11 22H2. The result is still bad.
Only, the loop-time of test .vi file can be stable in 49~51ms. (no matter in win10 22H2 or win11 22H2)