282
43-TV-25-30 Iss.6 GLO Aug 07 UK
With script above, BLKV (all Variables) are used to maintain values. It should be noted that
BLKV’s do not persist over a power removal, and if the application were to require a non-
volatile count, then BLKVn should be substituted with PSTVn.
Example 3
The application described in Examples 2 and 3 is to be extended to totalise the amount of
time that Input 1 is the highest of 1, 2, 3 & 4.
Again scripting can be used to easily solve this requirement.
The Pseudo code is written as
If input 1 is indicated as the current highest value, then display the timer.
If input 1 is not the highest input value, then stop totalising time and return the current timer
value.
We know that in Example 1, the highest value channel number is contained with GLBV1,
and as this is a global variable it is also accessible from this script.
if (A3>A2)
Tests if A3 is bigger than A2
{
if(BLKV1==1)
If it was then tests if A3 was bigger than A2 last
time period
{
return BLKV2;
If it was return with the current change counter
}
else
If not then
{
BLKV1=1;
Set flag to show that A3 has just exceeded A2
BLKV2=BLKV2+1;
Increment the change counter by 1
Return BLKV2;
Return the new change counter total
}
}
else
If A3 is not bigger than A2
{
BLKV1=0;
Set flag to show A2 is bigger than A3 this time
Return BLKV2;
Return current change counter
}
if (GLBV1==1)
Tests if the global variable 1 is equal to channel 1
{
Содержание Minitrend QX
Страница 2: ...ii 43 TV 25 30 Iss 6 GLO Aug 07 UK User manual ...
Страница 50: ...44 43 TV 25 30 Iss 6 GLO Aug 07 UK ...
Страница 192: ...186 43 TV 25 30 Iss 6 GLO Aug 07 UK ...
Страница 210: ...204 43 TV 25 30 Iss 6 GLO Aug 07 UK ...
Страница 242: ...236 43 TV 25 30 Iss 6 GLO Aug 07 UK ...
Страница 245: ...43 TV 25 30 Iss 6 GLO Aug 07 UK 239 Section 10 Spares List Minitrend QX Recorder 16 5 3 1 4 2 24 10 49 9 45 19 ...
Страница 249: ...43 TV 25 30 Iss 6 GLO Aug 07 UK 243 Multitrend SX Recorder 14 15 32 46 50 30 31 35 36 28 55 ...
Страница 250: ...244 43 TV 25 30 Iss 6 GLO Aug 07 UK 52 11 23 33 39 5 6 RS485 USB host Ethernet 1 2 3 4 ...
Страница 254: ...248 43 TV 25 30 Iss 6 GLO Aug 07 UK eZtrend QXe Recorder 16 5 3 1 4 2 24 49 9 45 19 6 49 ...
Страница 258: ...252 43 TV 25 30 Iss 6 GLO Aug 07 UK ...
Страница 274: ...268 43 TV 25 30 Iss 6 GLO Aug 07 UK ...
Страница 276: ...270 43 TV 25 30 Iss 6 GLO Aug 07 UK ...
Страница 296: ...290 43 TV 25 30 Iss 6 GLO Aug 07 UK ...
Страница 308: ...302 43 TV 25 30 Iss 6 GLO Aug 07 UK ...
Страница 312: ...306 43 TV 25 30 Iss 6 GLO Aug 07 UK ...
Страница 323: ......