Model Setup / SelectInstance
Block Name: SelectInstance

Code File Location: VisualSim/actor/lib/DS_to_Instance

Description

SelectInstance takes the incoming Data Structure (DS) and either assigns it to specific channel / instance number (DS(0)_to_DS(n)) or sends it to a default channel 0(DS(n)_to_DS(0)). The channel number is defined in a field or memory that is specified in the parameter. This block is required before and after a Dynamic Instantiation block (only if we are sending traffic to and out of dynamic instantiation).

Refer Creating_Multi_Instances Demo Model.


Parameter Explanation Type Example
Instance_Field_Name This is a field or memory name. This location specifies the instance/channel that the incoming Data Structure is destined for when the Conversion_Type is "DS(0)_to_DS(n)".  String "Instance_Field" or "instance_num"
Conversion_Type The type of conversion to be performed, either "DS(0)_to_DS(n)" (To multiple instance/channels) or "DS(n)_to_DS(0)" (To a single instance/channel). - DS(0)_to_DS(n)


Port ExplanationType
input Input port for the Data Strucutre.  The port is a multiport. Data Structure
output
Output port for Data Strucutre, which is multiport. Data Structure