HDL coder: Display video output by controlling with switch

3 visualizaciones (últimos 30 días)
Mohammed Shameem Hussain
Mohammed Shameem Hussain el 10 de Jul. de 2017
Comentada: Mohammed Shameem Hussain el 12 de Jul. de 2017
Hello,
I have made a Simulink model with HDL Coder blocks. The input to the model is video and output is also a video. During latching the output I am facing an error regarding the correct size of the frame.
I want the output of the and gate to control the output to the pixel to frame converter like shown in below. But it can be seen that the model throughs the error and display "?" in the output of the AND gate.
As when I remove the connection and gives a constant value to the switch as shown below then it works.
But I would like to control the flow of pixel by switching by AND gate output. Please suggest me a workaround or solution to this problem.
Thank you
  1 comentario
Mohammed Shameem Hussain
Mohammed Shameem Hussain el 12 de Jul. de 2017
Is there no solution for it? Is there a bug in Matlab blocks or I have implemented wrongly? Please suggest me a solution or workaround. I will appreciate the help as the requirement is urgent.
Thank you

Iniciar sesión para comentar.

Respuestas (1)

Bharath Venkataraman
Bharath Venkataraman el 10 de Jul. de 2017
Could you show us the earlier part of the model (before the AND block) or perhaps attach the model itself?
  2 comentarios
Mohammed Shameem Hussain
Mohammed Shameem Hussain el 10 de Jul. de 2017
Please find the model and video input in the attachment.
Looking forward to a reply.
Thank you
Mohammed Shameem Hussain
Mohammed Shameem Hussain el 11 de Jul. de 2017
Editada: Mohammed Shameem Hussain el 11 de Jul. de 2017
Addition Information, which I found very strange: When I connect one-dimensional video viewer instead of Blue channel of RGB video viewer then it works (see marked in yellow in below figure).
Any explanation for it? And suggestion how can I control color channels individually?

Iniciar sesión para comentar.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by