Switch between VR Text Output blocks for VR Sink in Simulink

1 visualización (últimos 30 días)
Andrew Poissant
Andrew Poissant el 21 de Jun. de 2019
I have two VR Text Output blocks that need to update text in my 3D world. I want to be able to switch between each VR Text Output block depending on if an input signal (a trigger) is equal to 0 or 1. I have tried something similar using a Manual Variant Sink block, but I do not want to manually choose which VR Text Output to execute, I want it done automatically if an input signal is 0 vs 1. How would I do this? I have attached an image of my current setup with the Manual Variant Sink block. It takes in an input signal with a vector of values to update the VR Text Output blocks, and sends the input signal to both VR Text Output blocks. Then the Manual Variant Sink block determines which block to execute.
Annotation 2019-06-21 120908.png

Respuestas (0)

Categorías

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

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by