DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

IF statements

Hello,

        Are there any functions in DIAdem that does the job of comparing the contents in the channel ? For example I just write "IF(AH2< 1*AJ2,15*AJ2,IF(AH2>AJ2,AJ2,AH2))*10/AJ2" and excel does the same for all the coulmns.

        One way to do it is to use CHDX,CHV functions in a for loop but I wanted to know if there are better ways to do something like this ?

Thanks

Vamshi

0 Kudos
Message 1 of 2
(3,729 Views)

Hi Vamshi,

 

Yes, version 11.0 we have the function IIF(condition, true_result, false_result), which is very similar to the IF function in Excel, and which can be used in a Channel Calculator expression.  Before DIAdem 11.0 you could still apply this logic, but the syntax was more challenging.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(3,706 Views)