how to write file in PS using simulink

4 visualizaciones (últimos 30 días)
Aera
Aera el 26 de Jul. de 2024
Comentada: Udit06 el 3 de Sept. de 2024
We are using a ZCU111 board and matlab/simulink to implement RFSoC logics. We are developing using the example on the Matlab website ( https://www.mathworks.com/help/soc/ug/ReceiveSignalWaveformUsingDDR4onXilinxRFSoCDevice.html ). There are PL and PS/processor in RFSoC. We want to create/generate data in PL and save data in PS.
Currently, a file has been created in PS. It is not the data we want, but it is writing something. However, after rebooting, it can no longer write data. Also, it is currently writing data to only one file, but we want to manage data events for multiple files.   We are saving data in a set of FIFOs and are able to read it out to the computer, but we want to save this data as incrementally named files (event1, event2, etc.) on the PS system instead.
In other words, there are two questions.
Q1. How can we generate files per event in PS/processor?
Q2. How do we keep writing data to files even after a reboot in PS/processor?
  1 comentario
Udit06
Udit06 el 3 de Sept. de 2024
Hi Aera,
1) In order to generate files per event, you can use Simulink's "task manager" block which supports event driven task management. You can refer to the following MathWorks documentation for more details:
Whenever an event is detected, you can write the data into a file. You can consider using "MATLAB function" block to write the code responsible for handling file operations. You can refer to the following MathWorks documentation for details related to writing to a file using MATLAB:
2) To ensure data persistence after a reboot, you can use a non-volatile storage like an SD card, or an external storage device connected to the PS to store your files.
If the issue still persists, you can reach out to MathWorks Technical Support using the link given below:

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by