LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mouse and touchpad freezes while running a VI

Hi everybody!

 

I have encountered a problem and haven't been able to fix it yet.

While running a VI in LabView, the mouse and the touchpad temporarily freezes. After several seconds it works fine again.

I tried to find a pattern and determine the cause within the application, but I haven't been successful. The issue seems to appear randomly.

Unfortunately, I also didn't find any other discussion entry with this topic.

I am using the version 2022 Q3 (64-bit) 22.3.1f8 of LabView on a computer with Windows 10 Enterprise (version 22H2).

Has anyone else experienced this problem who might be able to help me?

0 Kudos
Message 1 of 8
(1,193 Views)

What does the program do? Did you write it?

Does the mouse freeze in general or just on the front panel?

Maybe you are heavily taxing the UI thread. (greedy loops, massive amounts of data in front panel object, overlapping front panel objects? etc.). If you would attach your code, we could probably tell...

Did you configure any nonstandard priority settings?

Does the code contain any third party drivers or dlls?

0 Kudos
Message 2 of 8
(1,124 Views)

The program is basically a device handler (power supplies, data logger etc.). Opening a connection (via serial, Ethernet etc.) to the device, sending commands and receiving data. I extended the example "Continuous Measurement and Logging" to meet my purposes. I attached a scheme of the principal structure.

 

The mouse freeze in general and not only while interacting with the UI/Front panel. And it't not getting worst during the runtime, which it would expect if there is a process with a huge amount of data eating up the performance or delaying execution.

 

I would attach the code, but it's company property on the one hand and a complete project with more than one file on the other.

 

And I will check the configuration of the priority settings.

 

Regarding the DLLs and third-party drivers: As far as I knowm, I am not using DLLs in my application but I use libraries of third-parties (device suppliers).

0 Kudos
Message 3 of 8
(1,112 Views)

There is not really enough information for us to troubleshoot further.

 

What are the third party drivers and how good are they? Can you look at the code?

0 Kudos
Message 4 of 8
(1,099 Views)

These are the third-party drivers I use.

 

https://elektroautomatik.com/shop/en/service/downloads/labview/

The code is protected by password.

 

https://www.sefram.com/en/products/recorders-dataloggers/DAS240-20-to-200-channel-handheld-universal...

--> Docs and Software

The code is visible.

 

Both devices are more expensive and therefore I would expect them to deliver a good solution. The libraries are functional and I had no problems with them except that the mouse and touchpad are freezing. Everything else is executed and even the keyboard works.

0 Kudos
Message 5 of 8
(1,089 Views)

Hi Tho,

 

I just opened one of those EA VIs and saw that subVI:


@Tho342 wrote:
Both devices are more expensive and therefore I would expect them to deliver a good solution.

Do you still expect a "good solution" with "beta version" VIs?

 

I guess EA VIs are functional, but they forgot to either test their communication subVI or to edit the VI description…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(1,080 Views)

Hi GerdW,

 

I am not using the newest version 5.06 in my application. My release is 5.05 and I got the driver package on the NI website https://www.ni.com/en/support/downloads/instrument-drivers.html. I checked this website, but its not available anymore and I would attach the package, but its size exceeds 10MB. The subVI you mentioned in your post doesn't exist in my version and I haven't noticed any notes regarding beta version subVIs in my release.

 

Anyways, I still have the problem with the freezing mouse and touchpad. This issue is not related to the instrument drivers of EA. I have three different applications which are all based on the "Continuous Measurement and Logging" example. One uses only the "VISA Read" and "VISA Write" VIs to communicate with USB devices and no third-party drivers are used in the whole program. But the incident still happens.

I even created a version without any device communication and hardware access to rule it out but without getting a clue where the problem starts. I also tested the applications on another platform but it still remains.

 

That was the point when I wrote the forum entry, because I thought there might be an easy solution or somebody had the same issue.

0 Kudos
Message 7 of 8
(1,056 Views)

Hi Tho,

 


@Tho342 wrote:

Anyways, I still have the problem with the freezing mouse and touchpad. This issue is not related to the instrument drivers of EA. I have three different applications which are all based on the "Continuous Measurement and Logging" example. One uses only the "VISA Read" and "VISA Write" VIs to communicate with USB devices and no third-party drivers are used in the whole program. But the incident still happens.

I even created a version without any device communication and hardware access to rule it out but without getting a clue where the problem starts. I also tested the applications on another platform but it still remains.


So there is a problem with your code on your computer (and its setup/environment).

How can we help when we don't have access to any of those items?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 8
(1,047 Views)