01-24-2006 10:16 AM
01-24-2006 07:31 PM
01-25-2006 07:32 AM
01-25-2006 09:59 AM
Sanaa T.
National Instruments France
01-25-2006 01:03 PM
Bruno -
Since MySQL cannot handle the NAN value and if you are willing to convert the NAN value to a real value such as zero, I think you could use an expression in the configuration for the value being logged to the database. Try to use the expression:
(Logging.StepResult.Numeric == NAN)?0:Logging.StepResult.Numeric
01-25-2006 07:39 PM
01-26-2006 07:35 AM
01-27-2006 11:17 AM
Bruno -
Other than using a predefined value to represent NAN, ie. -1.0 E-308 or zero, the only option is to create a new boolean field in the table for each numeric value. The field could be called, VALIDDATA or NANDATA. Add a new column to the statement in TestStand using the expression: Logging.StepResult.Numeric == NAN.
Any SQL queries that get the values must also read the new field to determine whether the data values are valid.
01-31-2006 05:18 PM
Another idea: use the database NULL value to represent NaN.
To do this, specify a precondition for logging the DATA column that causes TestStand not to log the data if the value is NaN. The precondition would look like this:
Logging.DatabaseOptions.IncludeOutputValues && Logging.StepResult.Numeric != NAN
02-06-2006 02:06 AM