// elphel_set_P_value ( $GLOBALS['master_port'], ELPHEL_TRIG_DECIMATE, 0, ELPHEL_CONST_FRAME_IMMED, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC,$broadcast);// next maybe unneded if it was neve set non-0
elphel_set_P_arr($GLOBALS['master_port'],array('TRIG'=>0),ELPHEL_CONST_FRAME_ASAP,0,$broadcast);// all ports (before was onlymaster?)
elphel_set_P_arr($GLOBALS['master_port'],array('TRIG'=>0),ELPHEL_CONST_FRAME_ASAP,0,$broadcast);// all ports (before was only master?)
// elphel_set_P_value ( $GLOBALS['master_port'], ELPHEL_TRIG_DECIMATE, 0, ELPHEL_CONST_FRAME_IMMED, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC,$broadcast);// next maybe unneded if it was neve set non-0
log_msg("Started camera in periodic self-triggered mode, period = ".(0.00000001*$trig_period)." s, trig_condition = ".dechex($trig_condition));
if($all_trig_decimate){
log_msg("Started camera in periodic self-triggered decimated mode, period = ".(0.00000001*$trig_period)." s, trig_condition = ".dechex($trig_condition),0);