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

Topics that can not be classified under other subforums
Ответить
corleone13375
interested
interested
Сообщения: 6
Зарегистрирован: 12 авг 2014, 12:39
Версия LabVIEW: 13.0f2

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

Сообщение 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).
Аватара пользователя
mzu2006

Professionalism Tutorials Black
doctor
doctor
Сообщения: 2456
Зарегистрирован: 16 авг 2008, 02:12
Награды: 3
Версия LabVIEW: 7.1 10 11 12
Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
Контактная информация:

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

Сообщение 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.
corleone13375
interested
interested
Сообщения: 6
Зарегистрирован: 12 авг 2014, 12:39
Версия LabVIEW: 13.0f2

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

Сообщение 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.
corleone13375
interested
interested
Сообщения: 6
Зарегистрирован: 12 авг 2014, 12:39
Версия LabVIEW: 13.0f2

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

Сообщение corleone13375 »

here is the .vi
Вложения
State_Space_5_8b.vi
(282.48 КБ) 246 скачиваний
Аватара пользователя
mzu2006

Professionalism Tutorials Black
doctor
doctor
Сообщения: 2456
Зарегистрирован: 16 авг 2008, 02:12
Награды: 3
Версия LabVIEW: 7.1 10 11 12
Откуда: St-Petersburg (RU), Phila, Boston, Washington DC
Контактная информация:

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

Сообщение 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.
Ответить
  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «General»