Pico TC08 USB THERMOELEMENT DATA LOGGER PP222 Manual Do Utilizador

Códigos do produto
PP222
Página de 42
USB TC-08 Help
13
Copyright 2004 Pico Technology Limited. All rights reserved.
   printf(
"\nChannel %d overflowed"
, c);
   }
  
else 
// no overflow
   {
   printf(
"\nChannel %d: %f"
, c, value_array[c]);
   }
  }
 
if
 (i < 
9
)
  {
  
while
 (
60000
  > 
(GetTickCount() - last_time))
  
// 60000ms = 1 minute
   {
   Sleep(
100
); 
// let other applications run
   
}
  last_time = GetTickCount();
  }
 }
3.2.4
Legacy mode
Legacy mode is designed to aid developers who have already written code for the serial version of the
TC-08 and are not yet ready to rewrite their code for the 
 or 
 modes available with
the USB version. The legacy support is going to be phased out and will eventually be removed from
the driver altogether. If you want full support in the future, use the Streaming or Get Single modes.
To allow code to be easily developed for both the serial version and the USB version of the TC-08, all
the function names have been changed. The 
 function no longer
supports offset and gain - this is now stored only as calibration information in the unit itself. The legacy
routines will be familiar if you previously used the serial TC-08, however, the following changes should
be made to convert legacy applications:
  Reference the new Header file
  Reference the new Library file
  Place the new  DLL in the directory of the application
  Set the mains frequency
  Run and stop the unit
  Store a handle returned from