Contidos dentroLocalizar Mais DocumentaçãoDestaques de Recursos de Suporte | Fazer download desta apostila em PDF (103 KB)
Chapter 6 FunctionsThis chapter alphabetically presents each calibration function your loadable module calls to interface with KCMS Calibrator Tool. For each function, the chapter provides its purpose, arguments, and return values. Once a module is dynamically opened, Calibrator Tool uses dlsym(3X) to access the module functions by their symbolic names. Then it adds the names to the process symbol space. KCMSCMonClose()int KCMSCMonClose (void); PurposeKCMSCMonClose()performs any cleaning necessary (for example, unlocking the serial port) for the module code. ArgumentsNone. Return ValueReturns 0 if successful; returns any other nonzero value if unsuccessful. KCMSCMonInit()int KCMSCMonInit (KCMSCVisuals *vis_data); PurposeKCMSCMonInit() accepts a pointer to a KCMSCVisuals structure passed to it from the Calibrator Tool main program and is used by the module for initialization. Examples of initialization tasks the module might perform include:
Arguments
Return ValueReturns 0 if successful; returns any other nonzero value if the hardware fails to initialize. KCMSCMonMeasure()int KCMSCMonMeasure (KCMSCData *measured_data); PurposeKCMSCMonMeasure() accepts a pointer to a KCMSCData structure passed to it from the Calibrator Tool main program and performs the following functions:
Arguments
Return ValueReturns 0 if successful; returns any other nonzero value if the collection of data was interrupted either by the user or by failure of the hardware to measure the data. |