LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scan array for x,y data

Solved!
Go to solution

Hello,

 

Can you please help me to scan the attached array to return (x,y) values for data that is above -90 on the y-axis.

 

Thanks,

hiNi.

0 Kudos
Message 1 of 4
(2,614 Views)

@hiNI wrote:

Hello,

 

Can you please help me to scan the attached array to return (x,y) values for data that is above -90 on the y-axis.

 

Thanks,

hiNi.



Not sure what you're trying to do here.

You have two arrays.  All of your y data is greater than -90.

Are you just looking to Build Array to form a 2-D array?  Or are you looking to make an array of clusters of x and y?

 

As it stands, you have no need for the flat sequence structure or the local variables.

0 Kudos
Message 2 of 4
(2,612 Views)

Hello,

 

I am sorry that I put the wrong array in there.  The updated array can be found in the new attachement.  I also made a mistake on the threshold.  The threshold value for the y-axis data should be -75.  I would like to display an array showing the y data (and corresponding x-data) that is above -75.  Also, how do I add a line on the graph showing the threshold value of -75?

 

Thanks,

hiNi.

0 Kudos
Message 3 of 4
(2,602 Views)
Solution
Accepted by topic author hiNI

Hello hiNI,

 

Here is an example for you.

scan array.png

 

If you replace your "Y" values with "NaN" when they are below your threshold, they do not appear in the graph.

Create an array of "-75" values to show your threshold line.

 

You can test the attached vi by pressing the Run Continuously button, then change the Threshold value.

(Note: The Run Continuously button should only be used for testing.)

 

steve

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
Message 4 of 4
(2,591 Views)