LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does I clear this

Dear LabVIEW Professional Addicted,

 

                     Here i've attached what is my pblm. Typically when i'm click an open button that (open system keyboard)osk.exe automatically it                                opens and finally when i'm click the close button that command prompt says error.

 

                     ERROR:The process "osk.exe" with PID 3340 couldn't be terminated.

                     Reason: Access is denied. (cmd prompt says it)

 

                     Soln: If i'm open that .exe file as an system administrator permission(through CMD prompt) that ERROR wouldn't come.

 

                     Restriction: I've to open that file with system administrator permission(throughCMD prompt).

 

                     Is there any soln to clear that error?

 

                    open.png

 

 

                  close.png

0 Kudos
Message 1 of 12
(4,129 Views)

Can you attach a real snippet (or preferably the actual VI) instead of a picture of a snippet?

 

Pictures don't show sufficient information, e.g.

Why are you using "Mouse up" events?

What is the mechanical action of the booleans?

What's in the timeout case?

0 Kudos
Message 2 of 12
(4,110 Views)

OSK is the On Screen Keyboard developed by Microsoft for Windows XP (I believe).  Searching the Web for it shows numerous posts (having nothing to do with LabVIEW) where people are having trouble invoking it.  Given that, you may be (and probably are?) encountering an issue with using software not really "ready for Prime Time in Windows 7/8/8.1/10" (I presume you are no longer running Windows XP).

 

Taskkill is another Windows XP command.  How it interacts with UAC is anyone's guess.

 

It is probably better to do whatever it is you want to do by some other means, preferably ones that are more LabVIEW-centric and rely less on hooks into the Operating System.

 

Bob Schor

0 Kudos
Message 3 of 12
(4,092 Views)

Hi 

 

 

 

0 Kudos
Message 4 of 12
(4,009 Views)

Please read this message

 

A plea for full words

0 Kudos
Message 5 of 12
(4,000 Views)

The timeout case does NOT do anything. Delete it. Why do you use the "Mouse up" event? Just use simply the "Value change Event" for the buttons.

Change the mechanical action of the buttons to "Latch when released" from the "Switch until released". (https://www.youtube.com/watch?v=lvm3B2cLO90 , http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/changemechactofboolswitch/)

 

About the functionality: I tested your VI, and it works for me, the on screen keyboard starts. I have Windows10 x64 OS. However, the taskkill part does not function.

 

Edit: But why you need to launch this Win app from LabVIEW? You can just access it from Windows itself. What is your goal here with this "on screen keyboard"?

 

0 Kudos
Message 6 of 12
(3,976 Views)

Hi Blokk,

 

                 Even me also it was worked, when i'm click open button (in windows 8.1 *64 bit) OSK is opened.

 

                 As per requirement i changed my mechanical action, stillnow it's couldn't close?

 

                 I need as per mention your status like as However, the taskkill part does not function.

0 Kudos
Message 7 of 12
(3,961 Views)

@Traitor_Saravanan wrote:

Hi @Blokk,

 

                 Even me also it was worked, when i'm click open button (in windows 8.1 *64 bit) OSK is opened.

 

                 As per requirement i changed my mechanical action, stillnow it's couldn't close?

 

                 I need as per mention your status like as However, the taskkill part does not function.


The button mechanical action has nothing to do with the problematic system call functionality, I just wanted to mention other problems in your VI.

You still did not describe why you must start the on screen keyboard from LabVIEW? You place a shortcut on the desktop, and launch it from there... What is the benefit starting it from LabVIEW? Another thing you could consider to program your own keyboard panel inside LabVIEW. Google for it, you will find many examples...

 

To be honest, I do not really understand your English, and I guess you are dealing with the same problem when you try to understand what people write you in this forum. I guess this language barrier limits our communciation here 🙂 Do you use Google translate?

0 Kudos
Message 8 of 12
(3,958 Views)

I'm already seen on ni website for that shorcut file program code. actually the thing is now i'm using touch screen monitor that's why. i don't need shortcut file option it from desktop, I want to access directly and even taskkill also.

 

can u help me?

 

 

0 Kudos
Message 9 of 12
(3,942 Views)
I would just program a keyboard from LabVIEW...more flexibility, and it will look like as you wish. Also there are examples out how to do this, google for it: http://forums.ni.com/t5/LabVIEW/Is-there-a-LabVIEW-on-screen-keyboard-number-pad/td-p/990554
Alternatively you can here a company or programmer and they develope it for you for money...
Good luck!
0 Kudos
Message 10 of 12
(3,933 Views)