MIDAS
Loading...
Searching...
No Matches
miniana.f
Go to the documentation of this file.
1 SUBROUTINE process_event (HBUF, HREQ, HEADER, EVENT)
2 INTEGER*4 HBUF, HREQ, HEADER(4), EVENT(*)
3 WRITE (*,*) header(2)
4 END
5
6 PROGRAM test
7 include 'midas.inc'
8 INTEGER*4 status,request_id
9 INTEGER*4 hbufevent
10
11 status = cm_connect_experiment('','sample','Fortran Analyzer')
12 IF (status .NE. cm_success) stop
13
14 CALL bm_open_buffer('SYSTEM', event_buffer_size, hbufevent)
15 CALL bm_request_event(hbufevent, 1, trigger_all, get_all,
16 + request_id)
17
18 DO WHILE (status .NE. rpc_shutdown .AND. status .NE. ss_abort)
19 status = cm_yield(1000)
20 END DO
21
23
24 END
INT bm_open_buffer(const char *buffer_name, INT buffer_size, INT *buffer_handle)
Definition midas.cxx:6717
INT bm_request_event(HNDLE buffer_handle, short int event_id, short int trigger_mask, INT sampling_type, HNDLE *request_id, EVENT_HANDLER *func)
Definition midas.cxx:8465
INT cm_yield(INT millisec)
Definition midas.cxx:5642
INT cm_connect_experiment(const char *host_name, const char *exp_name, const char *client_name, void(*func)(char *))
Definition midas.cxx:2278
INT cm_disconnect_experiment(void)
Definition midas.cxx:2846
INT process_event(ANALYZE_REQUEST *par, EVENT_HEADER *pevent)
Definition mana.cxx:3081
void test(double total_sleep, double call_sleep)