필터 지우기
필터 지우기

Simulink keyboard as an output problem

조회 수: 1 (최근 30일)
Adam Bazyl
Adam Bazyl 2017년 9월 19일
편집: Adam Bazyl 2017년 9월 19일
Hello, I would like to use keyboard as output in Simulink, I'm trying to use Matlab Function Block, Java Robot Class and coder.extrinsic to declare extrinsic function but when I start the simulation I get an error: "Import statements are currently unsupported". The program code looks like
function y = fcn(u)
coder.extrinsic('import');
import java.awt.*;
import java.awt.event.*;
rob=Robot;
rob.keyPress(KeyEvent.VK_A)
rob.keyRelease(KeyEvent.VK_A)
y = u;
Is there an opportunity to solve this problem? I use Matlab version 2016a.
Thanks in advance !

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by