Can't set 'MSB Position' parameter of HDL Coder Bit Slice block programmatically. Any ideas?

Hi all!
I'm trying to programmatically (using set_param) set the 'MSB Position' parameter of a Bit Slice block, but I get this error:
Bit Slice block (mask) does not have a parameter named 'MSB Position'
I have also tried several variants like 'MSB_Position', 'MSB', 'MSBPosition', ... etc. but nothing seems to work.
Am I doing something wrong or is this a known issue?
Is there a workaround to programmatically doing this? (apart from directly editing the .slx file, which I know is a solution but I'd really like to avoid)
By the way, I'm using MATLAB Version 8.6 (R2015b) and Simulink Version 8.6 (R2015b).
Thanks!

 Akzeptierte Antwort

Kiran Kintali
Kiran Kintali am 16 Mär. 2017
Bearbeitet: Kiran Kintali am 16 Mär. 2017
Looking at base mask the edit boxes are associated with lidx and ridx parameter names on the block.
>> set_param(gcb, 'lidx', '20') >> set_param(gcb, 'ridx', '0')
Please reach out to mw-support related to this question. You can file a documentation and product related bug report here. https://www.mathworks.com/support/bugreports/
Thank you

Weitere Antworten (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by