// ====================================================== // to initilize HBOOK // ====================================================== #ifdef WIN32 #ifndef VISUAL_CPLUSPLUS #define VISUAL_CPLUSPLUS #endif #endif #include "hbook.h" #define SIZE 500000 typedef struct { float h[SIZE]; } PAW_COM; #define Pawc COMMON_BLOCK(PAWC,pawc) COMMON_BLOCK_DEF(PAW_COM,Pawc); PAW_COM Pawc; // ======================================================== #include #include #include #include #include "rawData.h" int hb_init (); int hb_close (); void main () { float x, atup[7]; HLIMIT (SIZE); if ( !hb_init ( ) ) { return; } // ---------------------------------------------------------------- // open calibLog file, which contains the list of data files // ---------------------------------------------------------------- x = 10.0f; HF1 (1, x, 1.0f); HFN (10, atup); hb_close (); return; }