Switch between VR Text Output blocks for VR Sink in Simulink

1 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by