In the attached Simulink model Test, I would like to query the port types that the inport block is connected to. I use the following code sample to determine this:
ports = get_param('test/In1', 'PortConnectivity')ports(1)
I get the following result:
ans = Type: '1' Position: [155 55] SrcBlock: [] SrcPort: [] DstBlock: [1x6 double] DstPort: [0 1 3 2 1 0]
As it can be seen, DstPort is a vector of numbers and I do not know what is the relation between those numbers and the 'trigger', 'enable' and 'ifaction' ports.
I would like to know if there is a way to map those numbers to the corresponding 'trigger', 'enable' and 'ifaction' ports?
Best Answer