Display image reflecting input value
Simulink / Dashboard
The MultiStateImage block displays an image to indicate the value of the input signal. You can use the MultiStateImage block with other Dashboard blocks to build an interactive dashboard of controls and indicators for your model. You can specify pairs of input values and images to provide the information you want during simulation.
Dashboard blocks do not use ports to connect to signals. To connect Dashboard blocks to signals in your model, use connect mode. Connect mode facilitates the process of connecting Dashboard blocks in your model, especially when you want to connect multiple blocks at once. If you only want to connect a single Dashboard block, you can also use the Connection table in the block dialog box to make the connection.
To enter connect mode, click the Connect button that appears above your unconnected Dashboard block when you pause on it.
In connect mode, when you select one or more signals or blocks, a list of parameters and signals available for connection appears. Select a signal or parameter from the list to connect the selected Dashboard block. To connect another Dashboard block, pause on the block and click the Connect button above it. Then, make a selection of signals and blocks in your model, and choose a signal or parameter to connect.
When you finish connecting the Dashboard blocks in your model, click the Exit button in the upper-right of the canvas to exit connect mode.
Dashboard blocks can only connect to real scalar signals.
You cannot use the Connection table to connect a Dashboard block to a block that is commented out. When you connect a Dashboard block to a commented block using connect mode, the Dashboard block does not display the connected value until the you uncomment the block.
Dashboard blocks cannot connect to signals inside referenced models.
If you turn off logging for a signal connected to a Dashboard block, the model stops sending data from that signal to the block. To view the signal again, reconnect the signal.
Connection— Select a signal to connect and display
Select the signal to connect using the Connection table. Populate the Connection table by selecting signals of interest in your model. Select the radio button next to the signal you want to display. Click Apply to connect the signal.
Scale Mode— Specify how to scale image
Specify how to scale the image.
Fill with fixed Aspect Ratio scales the image to the size of the block while retaining its original aspect ratio.
Fixed displays the image with its fixed true size.
Fill adjusts the image to fill the block.
State— Input signal value
Input signal value that causes the block to display an image. Click the + button to add another state.
Thumbnail— Image to display
Image the block displays when the input signal has the value specified in
State. The MultiStateImage block can display
bmp image files.
Label— Block label position
Position of the block label. When the block is connected to a signal, the label is the name of the connected signal.