LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Verify whether the input cluster data lies in between upper and lower limit data

Hi....

 

Here I have a input cluster of two 1D array of data. I need to check whether the input data lies in between upper and lower limit data. There should be a LED indicator to indicate if the limit is crossed.

 

Here's the data.

 

Thank you

 

 

stark8_0-1706089851281.png

 

0 Kudos
Message 1 of 5
(638 Views)

Hi stark,

 


@stark8 wrote:

Here I have a input cluster of two 1D array of data. I need to check whether the input data lies in between upper and lower limit data. There should be a LED indicator to indicate if the limit is crossed.

 

Here's the data.

stark8_0-1706089851281.png


There is no "data", there only is an image of "data". Mind to share a VI?

 

The clusters contain arrays of different length: how do you want to handle those differences?

How are lower/upper limit related to your input data?

What should happen for XY values of the input data when there are no corresponding X values in the limit clusters?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(629 Views)

Hi stark8,

 

You can use "In Range and Coerce", but your upper/lower limit arrays must have a size greater or equal to the size of your input arrays:

 

raphschru_0-1706093318363.png

Regards,

Raphaël.

0 Kudos
Message 3 of 5
(618 Views)

Have you tried something?

Hope you are aware of Cluster and Array functions?

Any Idea on In Range and Coerce Function?

 

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 5
(613 Views)

As has been said, an image is not sufficient to describe the problem, especially since we cannot even tell if the sizes of the arrays match (container size != array size).

 

Loos like you have data compatible with an xy graph in the "input cluster" and two limits cluster that seems to define rectangular areas.

 

One of many possible interpretations of your question would be to iterate over the input points, and for each, determine which of the various rectangles contain it. However, we cannot be sure, of course. Maybe we must assume that the collection of "rectangles" form an irregular area that defines an "inside/outside" for each point in the input. Should the input be checked in sequence until the first point is out of range? Should we determine "inside?" for each point, but then we need more than one LED?

 

Then you also have the problem of comparing floating point values, so the "edges" can be slightly fuzzy due to the limitations of the internal binary representation)

 

As a first step, attach a simple VI containing your diagram constants, then explain exactly want kind of result you expect from it. (Use save for previous: LabVIEW 2020 or below please). Make sure the data is reasonable!

 

Currently the "upper x" is lower than the "lower x" for the second point, for example. If this is real, you need to explain what it means!

0 Kudos
Message 5 of 5
(562 Views)