Xylem STORM 3 Basic Programming manual Manual de usuario Pagina 18

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 48
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 17
Returns TRUE if the given filenumber has reached the end of the file, FALSE if there is still data
available to be read from the current position.
OPEN “SiteID.csv” FOR READING AS #1
WHILE (NOT EOF(#1))
LINE INPUT #1, var$ REM reads each line of the log file
WEND
CLOSE #1
16
COMMANDS AND FUNCTIONS
Declares the end of a subroutine (begun with the SUB statement).
volume = calc_volume(3, 4, 5) REM sets volume to 60
SUB calc_volume(h, w, d)
vol = h * w * d
RETURN vol
END SUB
END SUB
Marks the end of a conditional WHILE-WEND loop. END WHILE may also be used instead
of WEND.
x = 0
WHILE (x < 30)
REM Break out of the loop when our seconds are greater than 30
x = DATETIME(SECONDS)
END WHILE
END WHILE
EOF (filenumber)
Ends the Basic program with a custom error message. Primarily intended for troubleshooting Basic
programs.
var = 12
IF (var > 10) THEN
ERROR “Number too large!” REM program ends here
ENDIF
ERROR
Vista de pagina 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 47 48

Comentarios a estos manuales

Sin comentarios