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!

 채택된 답변

Kiran Kintali
Kiran Kintali 2017년 3월 16일
편집: Kiran Kintali 2017년 3월 16일
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

추가 답변 (0개)

카테고리

태그

질문:

2017년 3월 16일

편집:

2017년 3월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by