PG API Error/Warning Handling and Messages - 2020.2 English

Vivado Design Suite Reference Guide: Model-Based DSP Design Using System Generator (UG958)

Document ID
UG958
Release Date
2020-11-18
Version
2020.2 English

xBlock Error Messages

Condition Error Message(s)
When calling xBlock(NoSubSourceBlock, …) and the source block does not exist Source block NoSubSourceBlock cannot be found.
When calling xBlock(sourceblock, parameterBinding), and the parameters are illegal, xBlock will report the Illegal parameterization error. For example, xBlock(‘AddSub’, struct(‘latency’, -1));

Illegal parameterization: Latency

Latency is set to a value of -1, but the value must be greater than or equal to 0

When the input port binding list contains objects other than xSignal or xInport: Only objects of xInport or xSignal can appear in inport binding list.
When the output port binding list contains objects other than xSignal or xOutport: Only objects of xOutport or xSignal can appear in outport binding list.
If the first argument of xBlock is a function pointer, the 2nd argument of xBlock is expected to be a cell array, otherwise, an error is thrown: Cell array is expected for the second argument of the xBlock call
If the source configuration struct has toplevel defined, it must point to a Simulink® Subsystem and it must be a char array, otherwise, an error is thrown: Top level must be a char array
If an object in the outport binding list has already been driven by something, for example, if you try to have two driving sources, an error is thrown. Source of xSignal object already exists

xInport Error Messages

Condition Error Message(s)
If you try to create an xInport object with the same name the second time, an error is thrown. For example, if you call p = xInport(‘a’, ‘a’). A new block named 'untitled/Subsystem/a' cannot be added.

xOutport Error Messages

Condition Error Message(s)
If you try to create an xOutport object with the same name the second time, an error is thrown. For example, if you call p = xOutport(‘a’, ‘a’). A new block named 'untitled/Subsystem/a' cannot be added.
If you try to bind an xOutport object twice, an error is thrown. For example, the following sequence of calls will cause an error: [a, b] = xInport(‘a’, ‘b’); c = xOutport(‘c’); c.bind(a); c.bind(b); The destination port already has a line connection.

xSignal Error Messages

Condition Error Message(s)
If you try to bind an xSignal object with two sources, an error is thrown. For example, the following sequence of calls will cause an error: [a, b] = xInport(‘a’, ‘b’); sig = xSignal; sig.bind(a); sig.bind(b); Source of xSignal object already exists.

xsub2script Error Messages

Condition Error Message(s)
xlsub2script is invoked without any argument. An argument is expected for xlsub2script
The first argument is not a Subsystem or the model is not opened. The first argument must be a model, Subsystem, or a block. Please make sure the model is opened or the argument is a valid string for a model or a block.
A Subsystem has Simulink function calls in its mask initialization code. Subsystem has Simulink function calls, such as gcb, get_param, set_param, add_block. Please remove these calls and run xlsub2script again or you can pick a different Subsystem to run xlsub2script.
The Subsystem has Goto blocks. You have the following Goto blocks, please modify the model to remove them and run xlsub2script again.