. |
Test Output Mechaware API Documentation > Output
OverviewOverviewThe Test Output block is used to connect the output of a MechaWare block to the user buffer. Each Test Output block is connected to a single 32-bit user buffer register for integer and float outputs and two 32-bit registers for double and long integer types. These registers overlap with the buffer used by Memory In User Buffer, Memory Out User Buffer, and Scope blocks. Each model has a set of 16 of these output registers. The Test Point Number defines the user buffer location that will be written to by this block. The data types that are output by the block to the user buffer are float (32 bits), double (64 bits), integer (32 bits) or Long integer (64 bits). If the data being accessed from the user buffer is 64 bits, odd user buffer numbers should be specified, and the next even test output should not be used. The user buffer location written to by the block is determined by the following formula: Index = (Model Number * 32) + 16 + Test Point Number So, a Test Output block in Model 2 with a Test Point Number of 6 will put its output in User Buffer[86]. The following parameters are used to configure this block at load time:
Matlab/SimulinkSimulink InterfaceThe Input of the Test Output block is a single value from another block. This block has no outputs. The Test Point Number determines which of the model’s 16 user buffer output registers are used as the destination of data for the block. The block’s update schedule is determined by the Subsample Code (See Subsampling). The following Parameter Dialog Box can be opened by double-clicking on the block in a Simulink Model: C++ APIC++ APIThe Test Output block is used to redirect output to the user buffer. This block has no configurable parameters.
|
| | Copyright © 2001-2012 Motion Engineering |