Additional General Blocks

Find the component for the remaining detail.

Explore the library's additional components. Review each block's purpose, interfaces, and configuration before use.

Miscellaneous Block Models


Central_Utilites CentralUtil

File: general_blocks/Central_Utilities.sim
Description
Central_Utilities - This box is a useful "catch-all" box to include in General_Block simulations. It automatically sets the simulator's animation mode and debugging levels to nominal values for General_Blocks. In the future, it may perform other needed centralized functions to General_Blocks. Include exactly *one* Central_Utilities box in a given General_Block simulation. Central_Utilities has no input or output ports. It stands alone by itself.

Ports

Input Ports

  • none

Output Ports

  • none

Parameters

  • Debug    Controls general debug output     Data Type: INTEGER
  • GB_Debug    Controls specialized debug output     Data Type: INTEGER
  • ShowInQueue Enables/disables viewing of InQueue behavior for Process Time Line (enabled=1) Data Type: INTEGER
  • ShowHW Enables/disables viewing non-service (hw) delays on Process Time Line (enabled=1) Data Type: INTEGER

Description of parameters for the Global Random Number Server: RN_Seed >= 0 Use +1 as the seed : RN_Seed < 0 Use the number provided as the seed


SystemCall

SysCall

File: general_blocks/Miscellaneous/SystemCall.sim
Description
The model executes a given command on the system shell.
The value returned by the command is placed on the port out.
Ports

Input Ports

  • trigger       Data Type: TRIGGER

Output Ports

  • out
    Data Type: INTEGER

Parameters

  • CALL

Dijkstra

File: general_blocks/Miscellaneous/Dijkstra.sim
Description
The model computes the least-cost routing table for the specified src,
according to the least-cost algorithm commonly know as the Dijkstra algorithm.
Ports

Input Ports

  • Mcost     Data Type: REAL
  • src         Data Type: INTEGER

Output Ports

  • routes Data Type: INTEGER

Parameters

  • none

TimeBetweenTriggers

TimeBtwTrig

File: general_blocks/Miscellaneous/TimeBetween.sim
Description
Each time the input to the model is enabled, the model calculates the elapsed time since the last
time the input was enabled and sends the value out to the output port elapsed.
Ports

Input Ports

  • trigger     Data Type: TRIGGER

Output Ports

  • elapsed     Data Type: REAL

Parameters

  • none

PrintEnvelope

File: general_blocks/Miscellaneous/Print_token.sim
Description
Developers Debugging Aid, the model prints contents and type of any data structure on the input in.
Ports

Input Ports

  • in     Data Type: ANY DATA STRUCTURE

Output Ports

  • none

Parameters

  • none

File: general_blocks/Miscellaneous/Print_real.sim
Description
The model prints out the real input on the port in.
Ports

Input Ports

  • in     Data Type: REAL

Output Ports

  • none

Parameters

  • none

File: general_blocks/Miscellaneous/Print_int.sim
Description
The model prints out the integer input on the port in.
Ports

Input Ports

  • in     Data Type: INTEGER

Output Ports

  • none

Parameters

  • none

PrintMessage

File: general_blocks/Miscellaneous/Print_message.sim
Description
The model prints the input on the port into the screen and passes the input to the port out.
Ports

Input Ports

  • in     Data Type: DATA STRUCTURE

Output Ports

  • out Data Type: DATA STRUCTURE

Parameters

  • none

This page is an editorial rewrite of source documentation. Historical status, availability, and platform notes are not independently verified for a current release. Technical examples are reference material, not a live simulator.