Next: int pet_analysis_counter(int called_from_scale Up: PET_ANAL.C Previous: char FindHeader(int file_handle)

int pet_analysis_scale(int called_from_counter, int run_number, char password, struct pdat patient_data)

Runs the scale and user screen when collecting full weight data. Called by analysis_pet(). Calls weigh_one_sample(), clean_list(), pet_analysis_done(), and pet_analysis_counter(). This function operates the user screen when the operator is using the scale. The first argument is a flag that should be true if the function has been called from pet_analysis_counter(), and false otherwise. This flag serves to keep the stack from exploding out of proportion when switching back and forth between pet_analysis_scale() and pet_analysis_counter(). When a switch is required, the function chooses between calling pet_analysis_counter(), or returning to it.


wolforth@pet.mni.mcgill.ca