status = xlGenerateButton(sysgenblock)
This looks pretty straightforward: give it the full path name of the System Generator token in the design and let it run. The tricky part is that the actual name for the System Generator token has a space at the very beginning (i.e. " System Generator"), which must be included in the full path name of the SysGen token. In general, when in doubt, you can use the "gcb" function to get the full hierarchical path name of any selected block in a model. In this particular example (download the model and m script here), below are the steps to get the full path name of the System Generator token and the snapshot of the output:
- Open the model system_period_test
- Select the System Generator token by clicking on it
- Go to the command window and run gcb, which will return the path name
You can now simply start the generation by running the command below:
xlGenerateButton('system_period_test/ System Generator')
No comments:
Post a Comment