Return flags for WM_VSM_CREATE

Flag

Description

VBF_ALLOC_VEC_OUTPUT

Causes Embed to automatically allocate output matrix for matrix input blocks.

VBF_ALLOW_VEC_CHAMELIONS

Causes connectors to accept scalar or vector connections.

VBF_CANCEL_DLG

Reserved.

VBF_CG_BLK_HAS_NO_RETURN_VALUE

If your DLL has one output, set this if you do not want to use a function return value.

VBF_CG_BLK_HAS_RETURN_VALUE

Reserved.

VBF_CG_EVENT_FUNC

Allows code generation for your DLL event function.

VBF_CG_NEVER

Prevents block from generating code.

VBF_EXECUTE_ALWAYS

Executes the block regardless of graph connectivity.

VBF_EXECUTE_NEVER

Never executes the block.

VBF_HAS_STATE

Indicates that the block has state (a delay element) and can break an algebraic loop. This block is called once, before all other blocks, to present an initial condition; then the block is called during normal diagram execution.

VBF_MENU_ONLY

Indicates a menu item only and no block is created; however, the userBlockEvent() function is called. This flag is useful for menu select to dialog.

VBF_RUN_BLOCK_AT_FRAME_END

Reserved.

VBF_STRAIGHT_WIRES

Causes wires to be drawn as straight lines rather than auto-routing.

VBF_USE_SIGNAL_DESCRIPTORS

Indicates block input and output vectors are of type SIGNAL (not double).