Страница 1 из 1

How to integrate each element of an 1D array for its own?

Добавлено: 08 сен 2014, 17:09
corleone13375
I want to integrate each element of a 1D array (in a Control&Simulation Loop).

With the Integrator.Vi i get the following error:
"Error - 2318 occured at Integrator in .../Control&Simulation Loop
Possible reason(s):
Control Design and Simulation: The dimension of the parameter vectors of this functiuon do not match."


The input is a 1D array with a 1x78 structure. I want to have each element integrated for his own so that i also get a 1x78 structure as result.

Is this possible with this vi? Or has anyone a suggestion how to solve this problem?

I have also tried it with the numeric integration.vi but this gains only a single value (result).

Re: How to integrate each element of an 1D array for its own

Добавлено: 08 сен 2014, 23:09
mzu2006
While using CD&SIM, each numerical value is a signal in time, so attempting to integrate an array means that you have 78 independent signals in time. Is it correct? I am hinting at maybe CD&SIM usage is not the best choice for the problem you are trying to solve.

Re: How to integrate each element of an 1D array for its own

Добавлено: 09 сен 2014, 11:22
corleone13375
Yes, thats correct. I have placed the integrator.vi in the Control&Simulation Loop because it must be placed in a loop and i am already using the Control&Simulation Loop for the state space.vi which can only be placed in this loop.

Re: How to integrate each element of an 1D array for its own

Добавлено: 09 сен 2014, 11:54
corleone13375
here is the .vi

Re: How to integrate each element of an 1D array for its own

Добавлено: 09 сен 2014, 20:28
mzu2006
For this particular case, you can select a polymorphic instance of the integrator in the configuration box (double click on the integrator icon). One of the selections is "vector"

I am still not convinced you need to use the CD&SIM functionality.