Crestron SIMPL+ Especificaciones Pagina 44

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 60
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 43
Software Crestron SIMPL+
flash card within the control system. The function will return an error code and the
program can act accordingly.
Other programs might prompt the end-user to insert a compact flash card. The
function, WaitForNewDisk, will halt the program and resume when a compact flash
card is detected within the control system.
The following is an example of a program that needs to read data from a compact
flash card upon startup:
FUNCTION ReadMyCompactFlashCard()
{
// call functions to read the compact flash card
//
// Note that this function will exist within the same
// thread as the calling function (Function Main).
// Because of this, the functions, StartFileOperations
// and EndFileOperations should not be used here.
}
Function Main()
{
StartFileOperations();
if (CheckForDisk() = 1)
Call ReadMyCompactFlashCard();
else if ( WaitForNewDisk() = 0 )
Call ReadMyCompactFlashCard();
EndFileOperations();
}
If the program is dependent upon data that read in from the compact flash card, it is
imperative for the program to validate the existence of the card. Otherwise, the
program will not have the necessary data needed to execute properly. The above
function will first check if the compact flash card is already inserted into the control
system upon system startup. If so, it will call the user-defined function,
ReadMyCompactFlashCard, to perform any file read operations on the compact
flash card. If the compact flash card was not found in the control system, the
program will wait for the card to be inserted before continuing. Once inserted, the
same function, ReadMyCompactFlashCard, is called.
Reading and Writing Data
Once the existence of the compact flash card is verified, the reading and writing of
data can be performed. Data can be read or written either with individual elements
(i.e., a single integer or string), or with entire structures of data.
Because each datatype (i.e.: INTEGER, STRING, LONG_INTEGER) uses a
different amount of storage in memory, there are different functions to read and write
each of these types. The return value of each of these functions is the actual number
of bytes read or written to the file. The reason why different functions have to be
called instead of having just one function is for the following reason. Data elements
are written to a file by inserting one element after another. The file does not contain
any information as to what that data is or how it is to be extracted out. It is up to the
program that will ultimately read that file to know exactly what is contained within
the file and how to extract the data back out of it.
The following example demonstrates this:
40 SIMPL+
Programming Guide – DOC. 5789A
Vista de pagina 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 59 60

Comentarios a estos manuales

Sin comentarios

Philips SWX2126S-27 manuali

Manuali dei proprietari e guide per l'utente per Video Philips SWX2126S-27.
We fornisce 1 manuali pdf Philips SWX2126S-27 per scaricare gratuitamente in base al tipo di documento: Manuale Utente






Più prodotti e manuali per Video Philips

Modelli Tipo di Documento
SWA2082-17 Manuale Utente   Philips SWA2082-17 User Manual, 2 pagine
SBD8000-27 Manuale Utente   Philips SBD8000-27 User Manual, 2 pagine
HSB3280-F7 Manuale Utente   Philips HSB3280-F7 User Manual, 2 pagine
19" ITV Card w-NET 1 Manuale Utente   Philips 19" ITV Card w-NET 1 User Manual, 2 pagine
VRA633AT Manuale Utente   Philips VRA633AT User Manual, 2 pagine
DVD950AT Manuale Utente   Philips DVD950AT User Manual, 2 pagine
VRKD12BL99 Manuale Utente   Philips VRKD12BL99 User Manual [en] , 43 pagine
22PFL4505D-F7 Manuale Utente   Philips 22PFL4505D-F7 User Manual, 3 pagine
MC120 Manuale Utente   Philips MC120 User Manual, 22 pagine
23PF8946A-37 Manuale Utente   Philips 23PF8946A-37 User Manual [en] , 2 pagine
32PF9996-37 Manuale Utente   Philips 32PF9996-37 User Manual [en] , 3 pagine
LX3500D3799 Manuale Utente   Philips LX3500D3799 User Manual [en] , 2 pagine
BTM630-37B Manuale Utente   Philips BTM630-37B User Manual [en] , 34 pagine
7FF1WD-37B Manuale Utente   Philips 7FF1WD-37B User Manual, 2 pagine
Portable Radio AE1500 FM-AM Analogue tuning Built- Manuale Utente     Philips Portable Radio AE1500 FM-AM Analogue tuning Built-in speaker Headphone jack Battery operated User Manual, 2 pagine
SPF3071-G7 Manuale Utente     Philips SPF3071-G7 User Manual, 128 pagine
DS9000-37 Manuale Utente   Philips DS9000-37 User Manual, 3 pagine
32PFL3504D-F7 Manuale Utente   Philips 32PFL3504D-F7 User Manual, 3 pagine
Fidelio HiFi Stereo Headphones X1 Manuale Utente   Philips Fidelio HiFi Stereo Headphones X1 User Manual, 3 pagine
27DV60S99 Manuale Utente   Philips 27DV60S99 User Manual, 62 pagine