/* ************************************************************** */ /* * MC4.H * * Zachary Wolf * 7/27/98 */ #ifndef __MC4_HEADER #define __MC4_HEADER #if defined(__cplusplus) || defined(__cplusplus__) extern "C" { #endif /* ************************************************************** */ /* PUBLIC FUNCTION DECLARATIONS */ void mc4_init(int gpib_board_addr, int gpib_dev_addr, int *dev_ID); void mc4_rel_motor_move(int dev_ID, char axis, double acc, double vel, double dis); void mc4_rel_stage_move(int dev_ID, char axis, double acc, double vel, double dis); void mc4_rel_2_motor_move(int dev_ID, char axis1, char axis2, double acc, double vel, double dis); void mc4_rel_2_stage_move(int dev_ID, char axis1, char axis2, double acc, double vel, double dis); void mc4_rel_2_stage_move_time_critical(int dev_ID, char axis1, char axis2, double acc, double vel, double dis); void mc4_abs_motor_move(int dev_ID, char axis, double acc, double vel, double pos); void mc4_abs_stage_move(int dev_ID, char axis, double acc, double vel, double pos); void mc4_abs_2_motor_move(int dev_ID, char axis1, char axis2, double acc, double vel, double pos); void mc4_abs_2_stage_move(int dev_ID, char axis1, char axis2, double acc, double vel, double pos); void mc4_zero(int dev_ID); void mc4_get_motor_pos(int dev_ID, char axis, double* pos); void mc4_get_stage_pos(int dev_ID, char axis, double* pos); void mc4_exit(int dev_ID); /* ************************************************************** */ /* SEMI-PERMANENT PARAMETERS */ #define MC4_MAX_NUM_DEV 10 #define MC4_MAX_CMD 80 #define MC4_NUM_STEPS_PER_REV 200 #define MC4_NUM_REV_PER_METER 5000 #define MC4_BOX_NUM 2 /* ************************************************************** */ /* DONE */ #if defined(__cplusplus) || defined(__cplusplus__) } #endif #endif