Working with NoValues in the Calculator in DIAdem 10.1 Primary Software: DIAdemPrimary 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: Example: Previous
to DIAdem 10.1: Ch('Example') := 'Example' +
('Example'>10) * NoValue |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
