Programmatically edit custom variables of thermal description

Is there a way to programatically read/write to the custom variables box in the thermal description of a device in plecs (blockset)? I am able to programmatically (from cmd window of MATLAB) read/edit the thermal decription box value, but can’t seem to be able to do that for the Custom Variables box.

You cannot directly access that field programmatically using plecs('set',...). However, you can define a variable (e.g. MyCustomVariables) to that field and then assign that variable the desired values in your script or workspace MyCustomVariables = struct('Vgs_on",Vgs_on,...).

1 Like

Thanks for the response. That is the workaround I figured out.