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

Topics that can not be classified under other subforums

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

Postby corleone13375 on 08 Sep 2014, 17:09

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).
corleone13375
interested
interested
 
Posts: 6
Joined: 12 Aug 2014, 12:39
LabVIEW Version: 13.0f2
Karma: 0

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

Postby mzu2006 on 08 Sep 2014, 23:09

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.
User avatar
mzu2006
doctor
doctor
 
Posts: 2456
Joined: 16 Aug 2008, 02:12
Location: St-Petersburg (RU), Phila, Boston, Washington DC
Medals: 3
Professionalism (1) Tutorials (1) Black (1)
LabVIEW Version: 7.1 10 11 12
Karma: 279
CLAD CLD I/O PDA VIP vision bloggers teachers

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

Postby corleone13375 on 09 Sep 2014, 11:22

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
 
Posts: 6
Joined: 12 Aug 2014, 12:39
LabVIEW Version: 13.0f2
Karma: 0

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

Postby corleone13375 on 09 Sep 2014, 11:54

here is the .vi
Attachments
State_Space_5_8b.vi
(282.48 KiB) Downloaded 109 times
corleone13375
interested
interested
 
Posts: 6
Joined: 12 Aug 2014, 12:39
LabVIEW Version: 13.0f2
Karma: 0

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

Postby mzu2006 on 09 Sep 2014, 20:28

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.
User avatar
mzu2006
doctor
doctor
 
Posts: 2456
Joined: 16 Aug 2008, 02:12
Location: St-Petersburg (RU), Phila, Boston, Washington DC
Medals: 3
Professionalism (1) Tutorials (1) Black (1)
LabVIEW Version: 7.1 10 11 12
Karma: 279
CLAD CLD I/O PDA VIP vision bloggers teachers


Return to General

Who is online

Users browsing this forum: No registered users and 0 guests

cron