From: josep jaak on
hell

I am trying to assing a name from a popupmenu of my gui to a from file block in simulink
ingreso=get(handles.popupmenu73,'value');
chainage=handles.InputChainage;% this function strore the strings
name_in=chainage(1,ingreso);% t
add_block('built-in/From File',[sys '/Input'],'position',pos);
set_param([sys '/Input'],'Name',name_in);

but i got the following error

Invalid setting in FromFile block 'Input' for parameter 'Name'.

Can you help me because i really need a dynamic name because