Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Working with NoValues in the Calculator in DIAdem 10.1

Primary Software: DIAdem
Primary Software Version: 10.1
Primary Software Fixed Version: 10.1
Secondary Software: DIAdem

Problem: In the DIAdem versions previous to DIAdem 10.1, values could be eliminated in the Calculator with the following formula:

Channel := Channel + Counter condition * NoValue

In DIAdem Version 10.1, this formula eliminates all channel values regardless of the condition.

Solution: In DIAdem Version 10.1 and later releases, the standard Calculator syntax is VBS.

The DIAdem value "NoValue" is the "NULL" value in VBS. If one of the operands is NoValue in VBS, the calculation result is NoValue. This was also the case in the syntax that was used in the Calculator previous to DIAdem 10.1, with one exception: 0 * NoValue = 0.

To ensure that DIAdem 10.1 remains compatible with this practice, the CTNV function has been implemented. CTNV converts a Boolean expression into NoValue or 0. The VBS syntax for eliminating values is:

Channel = Channel + CTNV(Counter condition)

Note: You must select Settings»Options»General»Compatibility and then select the checkbox VBS syntax in Calculator to execute these calculations.

Example:

Previous to DIAdem 10.1: Ch('Example') := 'Example' + ('Example'>10) * NoValue
DIAdem 10.1 and later releases: Ch("Example") = Ch("Example") + CTNV(Ch("Example")>10)

Related Links:

Attachments:





Report Date: 03/29/2007
Last Updated: 03/29/2007
Document ID: 4609E156

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit