Full Library / Defining_Flow / Basic Processing / Select
Block Name: Select
Code File Location: VisualSim/actor/lib/DS_Select_K
This actor selects a field of the incoming data structure and outputs the selected field on the select outputs. The matching of the field name to the output port is done using the Field_Description_A/B. 'A' matches with select_a and 'B' matches with select_b. Leaving the default name, or "none" will bypass the selected outputs, 'select_a', or 'select_b'. This block can also be used to extract individual bits from a binary word, where the (0, n) corresponds to the bit positions starting from 0. For example, one could extract the second byte with "fld (8, 15)" of a four byte word in bit format. This capability is available for 'fld' with types-integer, binary, or binary string.
Refer Select_Insert Demo Model.
Parameter |
Explanation |
Type |
Example |
Select_Field_Description_A |
This places the value in the field of the incoming Data Structure specified in this Field_Description_A on 'select_a' port. The format for this field is "Name, Type". The special case of extracting individual bits from a token requires the format: "MyField (0,n)", where n is an integer. MyField must be either integer, binary string, or binary format. |
String |
Field_Name |
Select_Field_Description_B |
This places the value in the field of the incoming Data Structure specified in this Field_Description_A on 'select_a' port. The format for this field is "Name, Type". The special case of extracting individual bits from a token requires the format: "MyField (0,n)", where n is an integer. MyField must be either integer, binary string, or binary format. |
String |
Field_Name |
Port |
Explanation |
Type |
input |
Used to accept the incoming Data Structure. |
String |
output |
Used to send the incoming Data Structure without any modification. |
String |
select_a |
The select_a output port. The field selected by Field_Description_A is sent out on this port. |
- |
select_b |
The select_b output port. The field selected by Field_Description_A is sent out on this port. |
- |
Created with the Personal Edition of HelpNDoc: Free help authoring tool