Im relatively new to LabView and am trying to use the "Not Or" function to determine when Y > X > -Y, but when wiring the Less Than/Greater Than outputs to the "Not Or" inputs it gives me a "You have connected two terminals of different types." From the context help descriptions the "Less Than" and "Greater Than" functions output true/false, which is what the "Not Or" function requires for inputs. Is there a setting I have to change within the "Not Or" to get it to work how I want it, or is there something that could work better in this application? Seems like there should be a Y > X > -Y, but I cant find it.
Attached is a .jpg of the layout and wiring.
Solved! Go to Solution.
The function you really want is the "In Range and Coerce" which is found in the comparison palette. Also, instead of multiplying by -1, there is a "Negate" function in the numeric palette.
Your screen shot has me baffled as well. My only guess is that you didn't wire the output of the greater than to the NOR, instead used the X input.
Are you only reading 1 value from the data file? I'm guessing so by the rest of your code. You should probably insert a Convert From Dynamic Data node to make it a scaler double immediately after reading from the file.
Thank you, the "Convert from Dynamic Data" was the missing link. I was having the same issue when I initially set it up using the "In Range and Coerce". And thanks for the tip on using "Negate", did I mention I'm new at this?...