WavePro 7Zi
93
WP700Zi-OM-E-RevA
In the figure below is a type of error message that you may see if one of your calculations has tried to set a value
outside the range -32768 to +32767. It takes extra time to guard against this, but unless you are sure that it will
not happen, you need some kind of check. In the example on the next page, the red trace has gone outside the
allowed range at the beginning, resulting in the message at the bottom of the instrument screen: This array is
fixed or temporarily locked:
OutResult.DataArray
.
Error Handling
Note that the construction OnError GoTo Label: is not allowed in VBS. In fact no GoTo's or labels are allowed.
Therefore there is no way for you to provide handlers to deal with errors and exceptions. You must be aware of all
possibilities at all points in your program, and you must either be certain that errors will not occur, or you must
take action to ensure that they do not.
Examples:
Function:Description:
Sqr
You cannot take the square root of a negative number.
Log
You cannot take the log of zero or of a negative number.
A / B
You cannot divide by zero.
Array
You cannot use an index outside the bounds of an array.
Size
Unscaled data cannot go outside the range -32768 to 32767.
If there is any possibility that any of these might occur, take steps to deal with this before it can happen.
For example, you may write some kind of generator of pseudo-random statistical values. If these belong to a
distribution that in principle has an infinite range, or a finite range which is wider than the signed 16-bits allowed,
check each value. If a value falls outside the range, you could set it to the maximum or generate another
example.
Содержание DDA 7 Zi series
Страница 1: ...Operator s Manual WavePro SDA and DDA 7 Zi Series Oscilloscopes ...
Страница 2: ... L R R H HUD RU D D ...
Страница 41: ...Operator s Manual WP700Zi OM E RevA 40 The detachable WavePro Zi front panel ...
Страница 376: ...WavePro 7Zi 375 WP700Zi OM E RevA Absolute Offset Relative ...
Страница 439: ...Operator s Manual WP700Zi OM E RevA 438 ...
Страница 440: ...WavePro 7Zi 439 WP700Zi OM E RevA ...
Страница 544: ...Thank you for purchasing a WavePro SDA or DDA 7 Zi Oscilloscope ...