07-09-2012 11:18 AM
I am not able to analyse why I am always getting false value all the time irrespective any all condition of value the on the input of greater than and greater then equal to function. I guess the grerater than function canot be used with scan from string output or index array.
Solved! Go to Solution.
07-09-2012 11:45 AM - edited 07-09-2012 11:46 AM
Hi ssnp,
wow, to get the time as individual number you have to convert to a string and then scan that string for 3 floats (where I would expect integers)? Ever looked into the time functions palette and examined the help for ?
"I guess the grerater than function canot be used with scan from string output or index array."
The comarison functions can be used with all kind of numbers. Where they are coming from is irrelevant...
You have to be careful when comparing floats for (in)equality as is done before the case structure. The reason for this was explained so often in the forum that there are people collecting for their retirement fund now...
- converting booleans to 0/1 is provided as a primitive...
"I am not able to analyse"
Then it seems you never heard of debuggingg tools like highlighting before...
07-09-2012 12:09 PM
the output of duration cluster is enum. The probe tool display the value I want it to be but passing the index of the enum to the greater than function(possibly). capturing the enum value form index will solve my problem.
07-09-2012 12:20 PM - edited 07-09-2012 12:20 PM
Hi ssnp,
you can get the actual string of the enum in several ways.
When using a case structure you don't need to get that string as the cases already show them in their labels.
And you still don't made a typedef from your enum. You only change the self-explaining text to some cryptic numbers...
07-09-2012 12:31 PM
Thanks