Can we call Per script , from Level 2 S Function ?

조회 수: 1 (최근 30일)
Ajay Pherwani
Ajay Pherwani 2014년 5월 15일
댓글: Ajay Pherwani 2014년 5월 29일
Working on S Function of a block. Using C to write it.
Need to call a Perl script once the simulation is over .
I know how to call perl script from command window , but is it possible to embedded the perl call in SFunction ?

답변 (1개)

Walter Roberson
Walter Roberson 2014년 5월 15일
The C code could use fork() and exec*() and pipe(), or it could use popen(). All those are system calls that are not part of the C standard library and so are not certain to be supported on arbitrary architectures.
  댓글 수: 1
Ajay Pherwani
Ajay Pherwani 2014년 5월 29일
Thats a good info thanks , But here i want to call perl script in matlab from S-Function (level 2). I wounder whether that is possible !!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by