06-05-2019 05:54 AM
Hi there,
I was wondering how you can compare each individual element in an array to a single value. The reasoning for this is that I am trying to identify minimum and maximum values in a square wave... the individual values of the square wave are written into a measurement file and then read by LabVIEW, and then presented in a 1D array. I would like make it so that I can compare these individual array elements to a threshold number (this would depend on what the high and low values of the square wave are) and this would then return either a 1 or a 0 if it was high or low. The VI is attached.
Thanks in advance
Solved! Go to Solution.
06-05-2019 06:00 AM - edited 06-05-2019 06:01 AM
Simply wire a constant (or a single value from a control) to the other terminal of the compare function. The output will be an array of boolean.
06-05-2019 06:04 AM
Thank you very much, I did not realise it was that simple!
Regards,
Christopher