Main Page   Compound List   File List   Compound Members   File Members  

frontend.c File Reference

This module contains the Midas Front End code for the Twist TEC Gas Handling PLC interface. More...


Functions

INT interrupt_configure (INT cmd, INT source[], PTYPE adr)
INT frontend_init ()
INT frontend_exit ()
INT frontend_loop ()
INT begin_of_run (INT run_number, char *error)
INT end_of_run (INT run_number, char *error)
INT pause_run (INT run_number, char *error)
INT resume_run (INT run_number, char *error)
INT poll_event (INT source, INT count, BOOL test)

Variables

 run_state
char * frontend_name = "feTEC"
char * frontend_file_name = __FILE__
BOOL frontend_call_loop = TRUE
INT display_period = 0
INT max_event_size = 32768
INT max_event_size_frag = 5*1024*1024
INT event_buffer_size = DEFAULT_EVENT_BUFFER_SIZE
DEVICE_DRIVER modtcp_driver []
EQUIPMENT equipment []


Detailed Description

This module contains the Midas Front End code for the Twist TEC Gas Handling PLC interface.

A link is made between the Midas database and the PLC, allowing monitoring of the PLC state and logging of various values. It is intended for installation as another front end running on E614Slow.triumf.ca as part of the Twist DAQ system

Contents: TRIUMF Twist TEC Gas Handling Frontend program.

Equipment Event_ID Trigger_mask Comments TecPlc 2 0x008

Author:
David Morris - TRIUMF, Created by: Stefan Ritt

Function Documentation

INT begin_of_run INT    run_number,
char *    error
 

INT end_of_run INT    run_number,
char *    error
 

INT frontend_exit  
 

INT frontend_init  
 

INT frontend_loop  
 

INT interrupt_configure INT    cmd,
INT    source[],
PTYPE    adr
 

INT pause_run INT    run_number,
char *    error
 

INT poll_event INT    source,
INT    count,
BOOL    test
 

INT resume_run INT    run_number,
char *    error
 


Variable Documentation

INT display_period = 0
 

EQUIPMENT equipment[]
 

Initial value:

 {
  {"TecPlc",      
  1, 0x0,               
  "SYSTEM",             
  EQ_SLOW,              
  0,                    
  "MIDAS",              
  TRUE,                 
  RO_RUNNING |
  RO_TRANSITIONS,       
  60000,                
  0,                    
  0,                    
  0,                    
  "", "", "",
  cd_tec_read,       
  cd_tec,            
  modtcp_driver,            
  NULL,                 
  },
    
  { "" }
}

INT event_buffer_size = DEFAULT_EVENT_BUFFER_SIZE
 

BOOL frontend_call_loop = TRUE
 

char* frontend_file_name = __FILE__
 

char* frontend_name = "feTEC"
 

INT max_event_size = 32768
 

INT max_event_size_frag = 5*1024*1024
 

DEVICE_DRIVER modtcp_driver[]
 

Initial value:

 {
  { "TecPlc",  modtcp, 23},
  { "" }
}

run_state
 


Generated on Mon Apr 19 15:27:44 2004 for Twist TEC DAQ System by doxygen1.2.18