cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
8,992 Views
Registered: ‎08-28-2007

System Generator - mask parameters and MCode

Hi,

This is a visibility issue that I haven't yet found an efficient way around it. Basically, I would like to access the parent block mask parameters from within my MCode (statemachine). I want this to be done at compile time as I need to make my code parametrizable.

Would appreciate any input on this.

Regards,
Mani
0 Kudos
Reply
2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
8,973 Views
Registered: ‎08-07-2007

The "Interface" tab of the MCode block allows you to equate an input to your function to a constant or a variable with the "Bind to value" field. 

Take a look at the help for the MCode block for details on passing parameters to your block.  A variable set in the interface tab can be defined in the MATLAB workspace or in a mask variable.

If you have further qeustions please open a webcase with Xilinx Support
0 Kudos
Reply
Highlighted
Observer
Observer
8,940 Views
Registered: ‎08-28-2007

Many thanks Jeffrey, sorted.

Mani
0 Kudos
Reply