LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reset integral

is it possible to reset integral function?

0 Kudos
Message 1 of 20
(4,586 Views)

Hi edek,

can you please give some more information? Can you post the part of your code?

 

Mike

0 Kudos
Message 2 of 20
(4,571 Views)

There is vi that calculates integral, derivative etc it's called time domain math or something. It calculates continuously and i want to restart it.

0 Kudos
Message 3 of 20
(4,560 Views)

You're using the Time Domain Math Express VI?

 

There's an option in there that is called Calculation Mode. It has a Continuous Calculation mode and a Per Segment Calculation mode. Does setting this to Per Segment Calculation mode give you the restarting effect you are asking for?

0 Kudos
Message 4 of 20
(4,557 Views)

No, I want continuous calculation, but i need that it calculates some stream of data then stop and calculate another stream of data separately not using value calculated from previous data.

0 Kudos
Message 5 of 20
(4,554 Views)

Can you change it to Per Segment Calculation and divide the segments up into array subsets and then feed the express VI those segments?

 

Or do the same thing with one of the other integration VIs if you are having trouble with this one?

0 Kudos
Message 6 of 20
(4,552 Views)

it's rather hard to divide data in arrays, because it's one stream of data from a/d converter and i'm not quite sure how to put it into arrays

0 Kudos
Message 7 of 20
(4,547 Views)

Is the stream a waveform data type? If so, that has the array information in it.

 

If its not a waveform data type, what data type is it?

Message 8 of 20
(4,544 Views)

dynamic data

0 Kudos
Message 9 of 20
(4,537 Views)

Convert the dynamic data to an array or waveform using the Convert from Dynamic Data express VI in the Express->Sig Manip palette. Array will give you just the Y axis values, and single waveform will give you Y axis data, dt and to. 

 

Either way, you can use the array . For the waveform data type you'll need to unbunble the array from the waveform cluster. Then use array subset to select the pieces you want and integrate those pieces in a for loop. Shouldn't be that bad. 

 

If you are really opposed to that, you could also try the Extract Portion of Signal in Express->Sig Manip, but I don't have experience with that. 

Message 10 of 20
(4,530 Views)