#ifndef DEVICE_FUNCTIONS_H_ #define DEVICE_FUNCTIONS_H_ #include "globals.h" #include ChannelStruct TestState[max_channels]; void idn_string(gchar** response); int Set_frequency(int check_possible_only,int word_override,int range_override,int channel,float set_freq); void Main_Rst(void); void set_dac(int dac, int word); int Set_Amplitude(int check_possible_only,int pol_override,int override_on,int word_override,int range_override, int switch_range_only,int channel,float new_ampl,int called_from_set_pw); int Set_Pw(int check_possible_only,int word_override,int range_override,int channel,float set_pw,int called_from_set_ampl); int Set_Offset(int check_possible_only,int override_on,int word_override,int range_override,int channel,float new_offset); int Set_Delay(int check_possible_only,int word_override,int range_override,int channel,float set_delay); int Set_Double(int channel,int new_setting); void Ctrl_PRF_Limiter(int enable); void Set_Mux(int channel); int Set_Func(int channel,int mode); int Set_Pol(int channel,int mode); int Set_Hold(int channel,int mode); int Set_Output_State(int channel,int mode); int Set_Trig_Source(int channel,int mode); int Set_Gate_Sync(int channel,int mode); int Set_Gate_Level(int channel,int mode); int Set_zout(int channel,int setting,int really_for_zout); int Set_Load(int channel, float value); int Set_EA(int channel,int mode); int Set_AdvDel(int channel,int setting); int Set_Pwmode(int channel,int mode); int Set_Update_Chans(void); int Set_Amp_Calib(int channel,float meas_ampl); int Set_Mon_Calib(int channel,float meas_ampl); int Set_Logic_Level(int channel,int mode); int Set_OS_Calib(int channel,float meas_ampl); float Get_PW_shift(int channel); int Set_PW_shift(int channel,float meas_ampl); int Set_Route(int channel,int module,int mode); int Set_EO(int channel,int mode); int Set_Dly_Shr_Nom(int channel,int calibration_point_number); int Set_Dly_Shr_Cal(int channel,int calibration_point_number,float cal_point); int Set_Cal_Nom(int channel,int calibration_point_number,int parameter, float *nom_val); int Set_VI_Cal_Pnt(int parameter,int channel,int calibration_point_number,float cal_point); int Set_VI_Del_Cal(int parameter,int channel,int calibration_point_number); int Set_VI_Control(int parameter,int channel,float new_ampl,int *point_found,int *relay_range,int *atten_range, int *UseNegData,int *entry,int *word_out,int *actual_pol); int Set_VI_Add_Cal(int parameter,int channel,float cal_point); int Get_VI_Num_Pnts(int parameter,int channel); int Get_VI_Rng_Info(int parameter, int channel, int calibration_point_number, int *range, int *polarity, int *entry, int *num_in_range, int *num_of_ranges); int Check_MinMax_Cal(int channel,int parameter); int control_pcb107(int address, int dac, int word, int range); int Set_Burst_Count(int channel,int count,float new_burst_time); int Set_Burst_Time(int check_possible_only,int word_override,int range_override,int channel,float new_burst_time); int Set_rise_time(int check_possible_only,int word_override,int range_override,int channel,float new_burst_time); int Set_current_limit(int check_possible_only,int channel,float adj_current_limit); int Set_slew(int check_possible_only,int word_override,int range_override,int channel,float new_burst_time); int go_cal(CalStruct *caldata); void cal_string(char *parameter, CalStruct *caldata); int self_cal(); int do_full_self_cal(CalStruct *caldata); int I2C_Self_Cal(int channel, int meas_mode, float *meas, float target_time); void Set_Rcl(int setting_num); void Set_Sav(int setting_num); void Main_update_shift_registers(); int IO_Setup_RS232(int baud, char handshake, gboolean update_flash); int change_password (gchar *old_password, gchar *new_password); int number_of_fixed_ampl_points(int channel); float rst_fixed_ampl_point (int channel); gboolean fixed_ampl_ok (int channel, float use_ampl); void get_min_max_fixed_ampls (int channel, float *min_ampl, float *max_ampl); #endif