Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

Function blocks returning a vector

0 votes
188 views

Can function blocks (Control→Functions & Tables) return vectors? If I use this syntax: 

[u[2]; u[1]] 

I get an error: 

Error evaluating parameter 'Expression' in component model/Fcn: While parsing: syntax error, unexpected '[' before '['.
asked Dec 16, 2020 by owiecc (14 points)

1 Answer

0 votes

From the block's help: "The input may be a scalar or vectorized continuous signal, the output is always a scalar continuous signal."  If your arithmetic is more complicated then above, then perhaps two Function blocks and a Multiplexer would achieve your desired goal.

answered Dec 16, 2020 by Bryan Lieblick (1,905 points)
...