LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

while loop problem

Hi all
I have a problem. I've attached a synthesis of my VI to explain myself better. I have to read my signal at 20 S/sec. I wanna refresh my chart every 1/4 sec so in each cycle i have 5 samples. I have to perform a value control every 3 contiguous samples, how can i do?

I have to perform a control like this (more or less...) :
samples -->   1 3 4 2 5    |      3 4 6 5 4     |     2 3 4 5 1     |     ...   for each cycle 5 samples
control   -->   1 3 4          |   2 5 3    4 6 5  |  4 2 3    4 5 1  |     ...   for each cycle i have to control 3 elements arrays without losing any samples

Any suggestions will be well appreciated.

Kind regards.

Message Edited by Maverick83 on 11-27-2006 06:41 PM

I love the smell of napalm in the morning
0 Kudos
Message 1 of 3
(2,611 Views)
You should be able to do this with a shift register. I don't have the DAQmx stuff, so I created a simple VI using the random number generator. You should be able to adapt it to your VI.
0 Kudos
Message 2 of 3
(2,577 Views)
Hi
Thanks for your smart solution!!

Best regards





I love the smell of napalm in the morning
0 Kudos
Message 3 of 3
(2,546 Views)