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

1 visualización (últimos 30 días)
Ajay Pherwani
Ajay Pherwani el 15 de Mayo de 2014
Comentada: Ajay Pherwani el 29 de Mayo de 2014
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 ?

Respuestas (1)

Walter Roberson
Walter Roberson el 15 de Mayo de 2014
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 comentario
Ajay Pherwani
Ajay Pherwani el 29 de Mayo de 2014
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 !!

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by