Open Application with MATLAB

31 次查看(过去 30 天)
Hello!
I'd like to use MATLAB to open 'Zebra Setup Utilities'(an application used to control Zebra label printers). My ultimate goal is use matlab to print labels from a printer, but I am struggling on step 1 which is to even open the application
I have tried using the !, system(' '), and winopen() commands which I have read are supposed to open up executable programs from the command line. However, for the first two I recieve this error
'Zebra' is not recognized as an internal or external command,
operable program or batch file.
and this error for winopen
Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced
delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.
Are these commands only meant to open up matlab files? Because they sucessfully open those! Are there any other ways I should try to open up the Zebra Setup Utilities?

采纳的回答

Mario Malic
Mario Malic 2021-2-15
编辑:Mario Malic 2021-2-15
Hi Sebastian,
you're supposed to provide full path to the executable file when using system command.
system("C:\Program Files\...\ Zebra.exe");
This might be a better way to do this as it provides more control over the process. You don't need to define Arguments and UseShellExecute properties in your case.
  1 个评论
Sebastian Caceres
Sebastian Caceres 2021-2-15
Hi Mario! Thanks it worked, and I will also be sure to check out the link you recommended!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Debugging and Analysis 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by