Binary File Writer in Simulink

1 visualización (últimos 30 días)
Ling Jiang
Ling Jiang el 25 de Abr. de 2019
Respondida: Walter Roberson el 25 de Abr. de 2019
Hi,
For the binary file writer block in Simulink, is it possible to make file name as a input variable? I'm running parsim, so for each simulation, I'm expecting a separate file.
Thanks!
  2 comentarios
Walter Roberson
Walter Roberson el 25 de Abr. de 2019
Is it possible to set_param it before you sim() ?
Ling Jiang
Ling Jiang el 25 de Abr. de 2019
Thanks for the response. Let me make it clear. For example, I defined "a = somebin.bin" before running simulation, and assign a as the filename in that binary file writer block. The output file from SimuLink is "a", not "somebin.bin". I guess it treats "a" as an actual filename. My question is how to pass "somebin.bin" as a filename?

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 25 de Abr. de 2019
It is not possible in any current release to bring the file name in on a port or to specify the name of a variable or data registry.
However, you should be able to use set_param() to change the file name associated with the block before you call sim()

Más respuestas (0)

Categorías

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

Etiquetas

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by