Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

run executable command for MatLAB and on-screen keyboard

Hello,

I would like to run an executable command to open MATLAB and the on-screen keyboard when I run my program. I found teh system exec.vi and am able to open MATLAB, but not the keyboard. The error message I get is

Error 3 occurred at System Exec.vi. Command was ""C:\%SystemRoot%\system32\osk.exe""
Possible reason(s):
LabVIEW: Internal error. Wrong memory zone accessed.
---
NI-488: GPIB Controller not addressed correctly.

I had added the C:\, so I think that was wrong. But when I deleted that part and had my command as what I found in teh properties I got teh following errors.

Start in: %HOMEDRIVE%%HOMEPATH% (From properties)

Error 2 occurred at System Exec.vi. Command was ""%HOMEDRIVE%%HOMEPATH%""
Possible reason(s):
LabVIEW: Memory is full.

Target: %SystemRoot%\system32\osk.exe (from properties)

Error 2 occurred at System Exec.vi. Command was ""%SystemRoot%\system32\osk.exe""
Possible reason(s):
LabVIEW: Memory is full.

I am not familiar with execution from within a program, so I could be missing something. Am I? Is there anything I could read to get a better understanding?

Thank-you!

IBAHKA

ps- I will attach my vi if it may help.
0 Kudos
Message 1 of 3
(3,328 Views)
Try just osk.exe for the command line. No quotes, no c:, no %SystemRoot%.
Message 2 of 3
(3,326 Views)
Thanks!
Works like a charm!
IBAHKA
0 Kudos
Message 3 of 3
(3,316 Views)