18 #include "class/multi.h"
19 #include "lem_generic.h"
20 #include "LakeShore336.h"
23 #include "tcpip_rs232.h"
55 {
"Lake336_Sample", ls336_in, 24, tcpip_rs232, DF_INPUT },
56 {
"Lake336_Sample", ls336_out, 14, tcpip_rs232, DF_OUTPUT },
57 {
"BH_Flow_1",
bh_flow_in, 2, tcpip_rs232, DF_INPUT },
58 {
"BH_Flow_1",
bh_flow_out, 2, tcpip_rs232, DF_OUTPUT },
59 {
"BH_Flow_2",
bh_flow_in, 2, tcpip_rs232, DF_INPUT },
60 {
"BH_Flow_2",
bh_flow_out, 2, tcpip_rs232, DF_OUTPUT },
61 {
"THCD_100_1", thcd_100_in, 1, tcpip_rs232, DF_INPUT },
62 {
"THCD_100_1", thcd_100_out, 1, tcpip_rs232, DF_OUTPUT },
63 {
"THCD_100_2", thcd_100_in, 1, tcpip_rs232, DF_INPUT },
64 {
"THCD_100_2", thcd_100_out, 1, tcpip_rs232, DF_OUTPUT },
108 INT
poll_event(INT source, INT count, BOOL test) {
return 1;};
128 cm_get_experiment_database(&hDB, NULL);
131 sprintf(cryo_path,
"/Equipment/SampleCryo/Settings/Devices/Lake336_Sample_0/DD/ODB Names/LS336 Name");
133 status = db_find_key(hDB, 0, cryo_path, &hKey);
134 if (status != DB_SUCCESS) {
135 cm_msg(MINFO,
"sample_cryo_changed",
136 "sample_scfe, sample_cryo_changed: couldn't find sample cryo ODB entry.");
155 cm_deregister_transition(TR_START);
156 cm_deregister_transition(TR_STOP);
157 cm_deregister_transition(TR_PAUSE);
158 cm_deregister_transition(TR_RESUME);
161 cm_get_experiment_database(&hDB, NULL);
164 status = db_find_key(hDB, 0,
"/Info/Sample Cryo", &hKey);
165 if (status != DB_SUCCESS) {
166 cm_msg(MINFO,
"frontend_init",
"sample_scfe, frontend_init: couldn't find sample cryo ODB entry");
void sample_cryo_changed(INT hDB, INT dummy2, void *info)
const char * frontend_name
< created by ODBedit, command "make"
INT max_event_size
maximum event size produced by this frontend
BOOL frontend_call_loop
frontend_loop is called periodically if this variable is TRUE
INT display_period
a frontend status page is displayed with this frequency in ms
INT event_buffer_size
buffer size to hold events
char sample_cryo[NAME_LENGTH]
sample cryo name
INT begin_of_run(INT run_number, char *error)
DEVICE_DRIVER sample_driver[]
INT interrupt_configure(INT cmd, INT source, PTYPE adr)
INT resume_run(INT run_number, char *error)
INT max_event_size_frag
maximum event size for fragmented events (EQ_FRAGMENTED)
INT bh_flow_out(INT cmd,...)
BOOL equipment_common_overwrite
INT end_of_run(INT run_number, char *error)
INT poll_event(INT source, INT count, BOOL test)
INT bh_flow_in(INT cmd,...)
INT pause_run(INT run_number, char *error)
const char * frontend_file_name
The frontend file name, don't change it.