Simulink Control Design™ - MathWorks

(Tuis.) #1

writeLookupTableData


Update portion of tuned lookup table


When tuning lookup table blocks with systune, use this function to update only a portion
of the table data in the Simulink model. This function is useful when retuning a single
point or a portion of the lookup table. To update the entire lookup table, use
writeBlockValue.


Syntax


writeLookupTableData(st,blockid,breakpoints)
writeLookupTableData(st,blockid,ix1,...,ixN)


Description


writeLookupTableData(st,blockid,breakpoints) writes tuned gain values from
an slTuner interface to a portion of a lookup table in the associated Simulink model.
Each row of breakpoints identifies an entry in the lookup table to update. blockid
must identify a single block in the TunedBlocks property of the slTuner interface.


writeLookupTableData(st,blockid,ix1,...,ixN) updates a rectangular portion of
the table data. The index vectors ix1,...,ixN select specific breakpoints along each table
dimension.


Examples


Update Specific Entries in Lookup Table


Suppose you have an slTuner interface st to a Simulink model that contains a 2-D
Lookup Table block Kp Lookup. The block is listed in slTuner.TunedBlocks. Suppose
further that you have retuned for design points corresponding to the (3,5) and (4,6)
breakpoints in the lookup table. Update the lookup table with the new values.


writeLookupTableData
Free download pdf