LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Averaging

Hi Gerd,

  Thanks for your response. I agree with you that 2nd shift register would yield the same value. It is a mistake. Actually I planned to increment

the 'i' value by 1 on each execution and feed it in to 'array subset.vi' inside the case structure.  In the build array, the current data value will be added to index '0' of output array and the previous data values will be logged on to consecutive indices.  Say at 21 min, the output array will have total 21 elements. The value at index '0' is 21st min value i.e. current value, which will be extracted by 'index array.vi'.  The remaining 20 elements starting from index'1' to index'20' will be extracted by 'array subset.vi'.  So for each iteration data values for latest 20 min duration will be extracted by incrementing 'i' value by 1. Unfortunately it could not be done as per you mentioned that for loop iterates once.  Is any way could I increment 'i'?

 

Instead of 'feed back' node is it not possible to use the shift registers? 

 

Senthil

0 Kudos
Message 11 of 15
(752 Views)
0 Kudos
Message 12 of 15
(744 Views)

Dear Ravens Fan,

    Thanks for your reply. Unfortunately I could not able to execute your VI as I am using Labview 8.2 version.  The feed back loop for both iteration and build array is broken. I presume in latest version

there is automatic inclusion of feed back node.  Could you suggest any possible solution to modify it to

8.2 version?

 

Thanks

 

Senthil

 

0 Kudos
Message 13 of 15
(720 Views)
Try this.  It uses an uninitialized shift register.  The othe version uses feedback nodes that don't have to be tied to a structure which wasn't introduced until either LV 8.5 or 8.6.
0 Kudos
Message 14 of 15
(711 Views)

Dear Ravens Fan,

 Kudos!!!!  It is working fine now. Wonderful Job!! Thanks a lot!!!

 

Regards,

SenthilSmiley Happy

0 Kudos
Message 15 of 15
(701 Views)