LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

"Not Or" (NOR) Function

Solved!
Go to solution
Highlighted

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.

0 Kudos
Message 1 of 4
(371 Views)

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.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Message 2 of 4
(370 Views)
Solution
Accepted by topic author Peter.Hathaway
08-27-2015 04:09 PM

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.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Message 3 of 4
(363 Views)

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?...

0 Kudos
Message 4 of 4
(341 Views)