MATLAB: How to detect Enable/Trigger/Function call subsystem

matlab functionsimulink

I am making small testing tool. In my work I need to detect Enable Port, Trigger Port and function call subsystems.
I tried the sentences like:
en_ports = find_system(system_name, 'BlockType', 'Enable Port');
trig_ports = find_system(system_name, 'BlockType', 'Trigger Port');
But this does not works..
My question is How to detect this kind of ports/subsystems using m script?

Best Answer

It should be:
en_ports = find_system(system_name, 'BlockType', 'EnablePort');
trig_ports = find_system(system_name, 'BlockType', 'TriggerPort');