Previous in Forum: Feeder Calculation Help   Next in Forum: Neutral Shift
Close
Close
Close
Rate Comments: Nested
Member

Join Date: Sep 2011
Posts: 6

Select One of Different Sized Matrices Simulink (PLC Compatible)

11/16/2016 10:20 PM

Hello,
I am looking for a method in Simulink to select between two matrices of different sizes (in this case a 2x3 and 3x3 matrix) which can pass the Programmable Logic Controller (PLC) requirement of fixed size output.

In the example attached, I tried using multiport switch, but it will only work when I enable variable size, which makes the approach incompatible with PLC. I cannot add zeros to make the matrices of the same size, because this will affect a part of my Simulink block downstream. Is there any possible solution/workaround for this method?

PS: I cannot use m-code for this purpose as it is not compatible with the PLC hardware target I plan to use.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#1

Re: Select One of Different Sized Matrices Simulink (PLC Compatible)

11/17/2016 10:03 PM

Well if it's been done you can probably find the method here...

https://www.mathworks.com/help/simulink/slref/selector.html?s_tid=gn_loc_drop

__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
Register to Reply

Previous in Forum: Feeder Calculation Help   Next in Forum: Neutral Shift

Advertisement