05-03-2015 09:16 PM
Help!! How do I save the maximum number? For example , I want the maximum value but if I were to have the next number, it shows the next number as the maximum value instead of my pervious maximum number which is a larger number . The first picture is how I got my values. It is just a sum of other values. What I want is to store the maximum number into the system.
Here below is how I get my maximum number. But it keep changing wether the fact that the next number is smaller or larger then my current value.
Is there a way to store the maximum number? I only want the maximum number to change if the next number is bigger than my current maximum number.
05-03-2015 09:34 PM
05-03-2015 09:36 PM
Is this what you are trying to do?
05-03-2015 10:09 PM
I think the shift register combined the Max & Min is the right answer.
You can also consider the Array Max & Min PtByPt VI,
http://zone.ni.com/reference/en-XX/help/371361J-01/ptbypt/array_max_min_ptbypt/
05-04-2015 08:22 AM
@Dennis_Knutson wrote:
You should really stop and take some of the free tutorials.
Obligatory free training links.
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-04-2015 08:38 AM
no need for a SR, just use...
05-04-2015 08:41 AM
Hi apok,
how do you call (a single instance of) PtByPt-ArrayMinMax when you have 5 different scalar values to work with?
You need to build an array from your scalar values and you need to call your PtByPt function in a loop to get a proper result.
It's much easier to use the plain ArrayMinMax function…
05-04-2015 08:53 AM
@GerdW wrote:
Hi apok,
how do you call (a single instance of) PtByPt-ArrayMinMax when you have 5 different scalar values to work with?
You need to build an array from your scalar values and you need to call your PtByPt function in a loop to get a proper result.
It's much easier to use the plain ArrayMinMax function…
it looks like th Op wants maximun number of the addition of the 5 values and not maximun value of any one value
05-04-2015 08:53 AM - edited 05-04-2015 08:54 AM
@GerdW wrote:
how do you call (a single instance of) PtByPt-ArrayMinMax when you have 5 different scalar values to work with?
You need to build an array from your scalar values and you need to call your PtByPt function in a loop to get a proper result.
It's much easier to use the plain ArrayMinMax function…
That's how I do it, but others might just drop down 5 copies of the PtByPt-ArrayMinMax and wire one to each of the scalar values.
Edit: or as mentioned this might be the max of the addition, more information from OP is needed.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord