02-02-2009 04:27 PM
SignalExpress help describes the function int(x) as rounding x to the nearest integer, but it functions the same as floor(x).
For example:
y = int(x0) where x0 = 2.9, y = 2.0
y = int(x0) where x0 = 2.4, y = 2.0
y = int(x0) where x0 = -2.4, y = 3.0
y = int(x0) where x0 = -2.9, y = 3.0
y = floor(x0) where x0 = 2.9, y = 2.0
y = floor(x0) where x0 = 2.4, y = 2.0
y = floor(x0) where x0 = -2.4, y = 3.0
y = floor(x0) where x0 = -2.9, y = 3.0
where x0 is the input analog input to the USB-6009
y = ceil(x) works as advertised. Am I missing something here?
Thanks - Bill
02-03-2009 01:43 PM
Hi Bill,
You are definitely not missing something. I was able to reproduce the incorrect function operation here on my end. I would like to file a corrective action request on the matter, and need some information from you. Which version of SignalExpress are you using? Thanks!
David
Applications Engineer
National Instruments
02-03-2009 02:25 PM
Thank you, David, for the reply. I am using SignalExpress Version 3.0.0
02-03-2009 02:42 PM