LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Malfunction of mouse when my Labview software runs halfway

I encountered this problem when running my labview VI software. Whenever I run the VI for the 2nd time onwards, my mouse stops functioning. What may be the possible cause? Did my VI cause the malfunctioning? If so, what may have been wrong with my VI to cause this? Pls advise, thks & best regards.
0 Kudos
Message 1 of 8
(3,151 Views)
Hi Lyn,

Could you post an example that demonstrates this behaviour?

What do you have to do to recover?

The only guess I can put forth at this time is that it sounds you are locking-up the UI thread. Like I said, just a guess.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 8
(3,151 Views)
It could have something to do with your video card. There is a Knowledge Base on NI's website which discusses one instance of this. You might want to take a look at that. But testing the VI on other machines is definitely the best way to begin troubleshooting the problem.
J.R. Allen
0 Kudos
Message 3 of 8
(3,151 Views)
I'm using a function generator to sent the 2 STRB signals.

To recover, i'll reboot the computer.

thks
0 Kudos
Message 4 of 8
(3,151 Views)
Actually my mouse stop to respond totally and not only sluggish. Nevertheless, I've tried the solution given by Knowledge Base on NI's website but my mouse still stop to respond after I run my vi halfway. For your advise, thks & best regards.
0 Kudos
Message 5 of 8
(3,151 Views)
Hi Lyn
As Ben said it could be your locking up the user interface, try putting a small time delay inside your loop.
0 Kudos
Message 6 of 8
(3,151 Views)
Your code may have helped me.

When you say the "second time" are you talking about just using the run button, let it complete.

Or,
Are you using the continuous run button?

I am asking because I see that your data analysis is running in paralle with the stop operations. If so, put a seq frame around all of the I/O stuff so it finishes before moving on to the analysis loop.

Just trying to help,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 8
(3,151 Views)
> I encountered this problem when running my labview VI software.
> Whenever I run the VI for the 2nd time onwards, my mouse stops
> functioning. What may be the possible cause? Did my VI cause the
> malfunctioning? If so, what may have been wrong with my VI to cause


This shouldn't have anything to do with UI threads and throttling the
diagram. You mouse is monitored by a driver. That driver is crashing
or hanging because of some interaction with your program.

If your program is accessing memory via Poke, then double check the
memory addresses that you are poking at. If you are making system or
ActiveX calls that are affecting HW settings, then suspect those.

To troubleshoot, comment out suspect parts of your program and see when
the problem goes aw
ay. You can also turn on hilighting and see which
node makes the problem appear. Let the diagram execute slowly while you
move the mouse and when the mouse stops, it was likely due to that node
or a very recent combination of nodes.

If none of this helps, please give more information about what types of
I/O your program is doing.

Greg McKaskle
0 Kudos
Message 8 of 8
(3,151 Views)