I want to modify some block properties from Xmath, for example to change name of a constant block. I tried something like
Can anyone help me?
Solved! Go to Solution.
You can use the SBA (SystemBuild Access, see Chapter 7 of the SystemBuild User guide ) routine modifyblock command to change any SystemBuild
block property. All created blocks have a block id which must be specified as part of the modifyblock command.
or to create a gain block
to retrieve the block id of a created block, pass in a variable set to zero, createblock will set the variable to the created block id
myid = 0
You can also get properties of a block using the queryblock command.
[t=threshold,c=color,l=location,t=blocktype] = queryblock(myid)
See Chapter 7 of the SystemBuild Users Guide for more commands and details