/* ************************************************************** */ /* * CM2100.H * * Zachary Wolf * 7/27/98 */ #ifndef __CM2100_HEADER #define __CM2100_HEADER #if defined(__cplusplus) || defined(__cplusplus__) extern "C" { #endif /* ************************************************************** */ /* PUBLIC FUNCTION DECLARATIONS */ void cm2100_init(int gpib_board_addr, int gpib_dev_addr, int *dev_ID); void cm2100_set_num_steps_per_rev(long num_steps_per_rev); void cm2100_rel_move(int dev_ID, double acc, double vel, double dis); void cm2100_start_rel_move(int dev_ID, double acc, double vel, double dis); void cm2100_end_rel_move(int dev_ID, double dis); void cm2100_get_abs_position(int dev_ID, double* pos); void cm2100_zero(int dev_ID); void cm2100_exit(int dev_ID); /* ************************************************************** */ /* SEMI-PERMANENT PARAMETERS */ #define CM2100_MAX_NUM_DEV 10 #define CM2100_MAX_CMD 80 #define CM2100_NUM_STEPS_PER_REV 50000 //#define CM2100_NUM_STEPS_PER_REV 25000 //#define CM2100_NUM_STEPS_PER_REV 400 /* ************************************************************** */ /* DONE */ #if defined(__cplusplus) || defined(__cplusplus__) } #endif #endif