01-24-2024 03:50 AM
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
01-24-2024 04:15 AM
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.
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?
01-24-2024 04:50 AM - edited 01-24-2024 04:50 AM
01-24-2024 05:01 AM
Have you tried something?
Hope you are aware of Cluster and Array functions?
Any Idea on In Range and Coerce Function?
01-24-2024 11:28 AM - edited 01-24-2024 11:35 AM
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!