update popup list by script
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
function hal_sen_popup_update
|
||||
lst = {'RPM1','RPM2','hello'};
|
||||
|
||||
load_system('hal_api_sens');
|
||||
set_param('hal_api_sens','Lock','off');
|
||||
|
||||
b = Simulink.Mask.get('hal_api_sens/hal_sen_read');
|
||||
p = b.Parameters(1);
|
||||
p.set('TypeOptions',lst);
|
||||
|
||||
set_param('hal_api_sens','Lock','on');
|
||||
close_system('hal_api_sens',1);
|
||||
end
|
||||
Reference in New Issue
Block a user