Chapter 5 Generated Code Architecture© National Instruments Corporation 5-23 AutoCode ReferenceThe BlockScript block allows you to specify conditions and actions, defineblock inputs, outputs, and parameters, and specify their data types anddimensions. BlockScript then writes the update equations that process theinputs and parameters to produce the outputs. BlockScript I/O can be readby the Data Dictionary. The BlockScript block is designed for general use;however, there are special semantics that apply to the translation of theBlockScript into code that can cause unexpected results if not fullyunderstood.Inputs and OutputsThe inputs and outputs of a BlockScript block are represented by a set ofscalars or vectors. If a vector, the vector might be a fixed size, or a sizerelated to the number of inputs or outputs of the block.Note The size of the I/O variables and the number of I/O signals of the BlockScript blockare recursively related. If you change one, the other also changes.Inputs and outputs are declared in two steps:1. Create the names of the variables to be used as inputs and outputs.The order of this signature is critical as it provides a mapping to theinput/output pins of the block.2. Specify the data type and size of the variables.If you do not specify a data type declaration, BlockScript assumes thevariable is a scalar float. The order within the data type declaration is notimportant.Example 5-5 shows declarations of inputs and outputs.Example 5-5 Example BlockScript Block Input/output Declarationsinputs : (alpha, beta, gamma);outputs: result;float alpha, gamma(5);integer beta(5), result(10);-----------------------------------------inputs : data;outputs: control;float data(:), control(data.size);