cancel
Showing results for 
Search instead for 
Did you mean: 

MouseAcquire Error

ratomas
Member

MouseAcquire Error

Message contains an image

Hi all,

I have problem with mouseAcquire.vi ( Acquire Input Data VI ). Error code –2000000012 Close failure. Make sure the device is currently open. Error appears in startup of application under Operator account. When I start application under Administrator account, it works without error. I made test application only with Initialize Mouse.vi, Acquire Input Data.vi, Close Input Device.vi under Operator account, it was without error.MouseError.JPG

Blocks.JPG

 

 

 

 

 

 

3 REPLIES 3
Martiko
NI Employee (retired)

Re: MouseAcquire Error

Hi ratomas,

Can you send us the VI showing error with steps how to reproduce it?

As the simple VI is working under Operator account, it might be something else within your architecture what is conflicting the mouse acquisition.

 

Looking forward to seeing more. ;-)

ratomas
Member

Re: MouseAcquire Error

Message contains an image Message contains an attachment

Hi Martiko,

I tried to search device problem but I found nothing.

Device Manager.JPG

I don´t know how to reproduce error. That is problem. I only know that appears during startup application under Operator account.

Here is VI which causes error - case - Init VI.

 

Highlighted
okubik
Active Participant

Re: MouseAcquire Error

Message contains an image

Hello,
I don't the idea behind the code...to acquire mouse click event I recommend you to use event structure. Here is the example that shows use of "Mouse Down" or "Mouse Down?" event generated by the main Pane of the VI.

 

Mouse Event.png

 

Additionally, I strongly recommend you to avoid using Czech diactitics for case selectors in case structures and control labels (for localized names use control Captions instead).

 

Regards,

Ondřej K.

CLA, CTA, CLED