LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help in improving logic for determining the range

Hi guys,

 

I need some help in my program logic to determine the range of value. My purpose of this program is to find which combinations have the lowest amplitude.

 

In the attachment is a set of number.

e.g 10    0 is a combination.

 

Each combination, I will need to draw a graph of data acquired using this combination VS gray level. There is 255 gray level. Every 5 gray level I will acquire a point so I will have 52 points.

 

Next, I will get the maximum value - minimum value. And this is the amplitude for the combination. I can do all this function, however it is not practical for me to do it this way until 360 360. There is a round 1200+ combination. It requires a long time since I need to interface all this function with my hardware.

 

The graph of each combination maybe a irregular shape. Do any of you have a logic to help me to shorten the process and find the range of values (combination) where the lowest amplitude may lies. Thanks!!

 

 

 

0 Kudos
Message 1 of 5
(2,875 Views)

You have not given us much information.  Do you have any knowledge about your system which will help you find the minimum?  For example if the signal is known to be continuous across combination boundaries you could avoid searching in directions where the signal is increasing.

 

1200 points is not a lot.  If you have an array of the points will the Array Min and Max function help?

 

Can you show us some typical data?

 

Lynn

0 Kudos
Message 2 of 5
(2,840 Views)

Hi Johnsold,

result.png

This is a example of my result. This is only a portion of it. The last column is the amplitude, I store all the 52 points into array and used Array Min and Max function. Then I use max - min to get the amplitude. From the amplitude I cannot see any pattern. Can you please advice me on it. Thanks!!!

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

This looks like data which could be displayed on an Intensity graph.  Then you could look at the image created and perhaps get some ideas about what to do with it. The eye-brain combination can be very good at spotting patterns.

 

Make a 2-D array of the amplitudes. The first column would be the data you posted above. The next column would have the data corresponding to 0-360 and 10.  Wire the 2D array of amplitudes to an intensity graph.  Adjust the color ramp to match the range of values.

 

Lynn

0 Kudos
Message 4 of 5
(2,817 Views)

Hi Johnsold,

 

I do have other set of datas. Each data is different based on the combination. Please take a look at the data and advice me. Thanks!!!

11.png

0 Kudos
Message 5 of 5
(2,814 Views)