LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

comperator

Solved!
Go to solution

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.

0 Kudos
Message 1 of 5
(2,368 Views)

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

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,357 Views)

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.

0 Kudos
Message 3 of 5
(2,347 Views)
Solution
Accepted by topic author ssnp

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

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,339 Views)

Thanks

0 Kudos
Message 5 of 5
(2,333 Views)