Use this button to perform an Action (see "Actions - Overview"). The Action can be chosen from a list in the properties of the button.
The button layout depends on a layout that is defined in the "Button Repository".
Properties
Find more information about changing properties here: "Properties Viewer"Action
type: Select from the listSelect the Action that is performed when the button is clicked.
Value
type: See descriptionFill in a Value, if one is needed for the Action or to set a value in Address.
Address
type: Address, enclosed in '$' characters (see "Address - how to address objects and variable parameters")Fill in the address of the object that the Action targets. The address should start with '$'.
ButtonFormat
type: Known button type nameThe name of the button format in the Button Repository, used to draw this button.
ButtonText
type: See descriptionThe text on the button. May contain variables.
Size
type: Size containing width and heightThe size of the user interface of this object (width, height).
Coordinates
type: CoordinateThe location of the user interface of this object in (x,y) coordinates, relative to the object it is on top of.
Caption
type: Word or phraseThe name of the object in the project. This name must not contain '.', '$' nor '@' characters.
Documentation
type: See descriptionOptional documentation of this object. If this object is an operator, the Documentation text is displayed below the operator symbol.
Variable Parameters
Find more information about Variable Parameters here: "Variable Parameters"ButtonText
type: See descriptionThe text on the button (equals the Caption).
Action
type: See descriptionDefines the Action that is performed when the button is clicked. See the properties for available Action names.
Value
type: See descriptionFill in a Value, if one is needed for the Action or to set a value in Address.
Address
type: See descriptionFill in the address of the object that the Action targets. The address should start with '$$'.
For example: you want to change the Address of $Design.Action Button 1. You will do that using another Action Button with the following settings: Action=SET_PARAMETER, Address=$Design.Action Button 1.Address, Value=$$New Address.
If you would write only one '$', then Polybench will replace the address text with the contents of that address, which is probably 'xxxxxx'.
Functions
Find more information about Functions here: "Operator Functions"Enable
Sets the button appearance to Enabled, so that the user can click the button.(not used)
Disable
Sets the button appearance to Disabled, so that the user cannot click the button.(not used)
This button can be used on Design pages, as well as Display pages. If it is put on a Printable page, the button will not be printed.
Note: if you load a project that has been created in Polybench 1.8 or earlier (prior to 2010), then the original button text will disappear. To solve that issue, you could load and save that old project in Polybench version 1.34 first.
Examples
Example: Start-Stop with one Action Button
Demonstrates how the function of an Action Button can be changed after pressing the button. Initially the button starts the Signal Generator, but it also changes the button text and the address of the action sequence that is called on the next button press.Examples\DF0306006_002_Action_Button_Start_Stop_Demo.xmc