ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write array from continuous data (with fixed size)

Solved!
Go to solution

Hi fellow LabView users,

 

my problem is very basic, I'm sorry for that, I'm just a beginner Smiley Embarassed

 

I'm getting continous data from a function and I would like to write them in an array with a fixed size. The fixed size is because I want to get the max/min entry of the last x elements. I've been trying this for about an hour now with different approaches but nothing seems to work, so I'm frustrated enough to put my problem out here. 

 

I hope the VI is understandable even with the foreign titles. Basically I want to make two leds light up if my data within one period is greater or smaller than a reference value. 

 

I'm thankful for any hint of help 🙂

0 Kudos
Message 1 of 5
(3,446 Views)
Solution
Accepted by topic author welle

Use min & max ptbypt with the desired history buffer length.

 

 

0 Kudos
Message 2 of 5
(3,431 Views)

Just to get more familiar with LabVIEW operations (arrays, shift registers, etc.), you could do something like described here.

 

 

(simply replace the mean (top center) by array min&max. :D)

Message 3 of 5
(3,427 Views)

Thanks so much! Worked like a charm and will try the second approach too =D

0 Kudos
Message 4 of 5
(3,424 Views)

 

very nice 🙂

0 Kudos
Message 5 of 5
(3,384 Views)