corrected pg_setup and daq initialization in hrefficiency
handle pg period in pg_single
hrefficiency