Interfacing Simulink with another program through text files
이전 댓글 표시
I simply want Simulink to write an output signal to a text file, wait for the values of a second text file to get updated by another program, which are then read as the input for Simulink to continue the signal. Basically interupting the simulation during the timestep in order to output and input the signal from a text file from another program.
I tried with the Matlab function block. However, the fprintf function cannot write a changing variable to a text file, only a constant one. Not sure exactly why.
Does anyone know how to do this or know of a workaround?
Thanks in advance for answers :)
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 String에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!