02-02-2011 07:50 AM
A word of caution ... If you try this :
MsgBox ValMax (1,2,3,4)
You may be surprised that the answer is 2, and there are no syntax errors flagged by DiaDem 2010 SP1.
The code needs to read :
MsgBox ValMax ( ValMax(1,2) , ValMax(3,4) ).
02-02-2011 04:34 PM
Hello Colin,
The function works correctly according to the help system, but I agree that it should issue an error message when more than two parameters are entered. I have forwarded this to the DIAdem R&D team to create a fix for the next release of DIAdem that will display an error message when more than two parameters are entered for ValMax.
Thank you for the notice.
Determines the greater of two numbers.
ReturnValue = ValMax(Value, Value)
Value | Specifies a numerical value. |
Value | Specifies a numerical value. |
ReturnValue | The return value is a Real variable type. |
02-02-2011 04:55 PM
Hi Colin,
I always use MinV() and MaxV() personally. They complain if you try to use more than 2 parameters.
Brad Turpin
DIAdem Product Support Engineer
National Instruments