#print '\nEnable test data'
    #fmc_adc.test_data_en()

    nb_shots = 1
    print("Number of shots: %d") % nb_shots

    fmc_adc.print_adc_core_config()

    print '\nGet acquisition FSM state:'
    print 'FSM state: ' + fmc_adc.get_acq_fsm_state()

    print '\nSet trigger configuration'
    fmc_adc.set_trig_config(1, 0, 1, 1, 0, 0, 0)

    print '\nSet number of pre-trigger samples'
    fmc_adc.set_pre_trig_samples(500)

    print '\nSet number of post-trigger samples'
    fmc_adc.set_post_trig_samples(500)

    print '\nSet number of shots'
    fmc_adc.set_shots(nb_shots)

    print '\nStart acquisition'
    fmc_adc.start_acq()
    print 'FSM state: ' + fmc_adc.get_acq_fsm_state()

    print '\nSoftware trigger'

    for i in range(nb_shots):
    #print '\nEnable test data'
    #fmc_adc.test_data_en()

    nb_shots = 1
    nb_samples = 0x4000
    print("Number of shots: %d") % nb_shots

    print '\nGet acquisition FSM state:'
    print 'FSM state: ' + fmc_adc.get_acq_fsm_state()

    print '\nSet trigger configuration'
    fmc_adc.set_trig_config(1, 0, 1, 1, 0, 0, 0)

    print '\nSet number of pre-trigger samples'
    fmc_adc.set_pre_trig_samples(nb_samples/2)

    print '\nSet number of post-trigger samples'
    fmc_adc.set_post_trig_samples(nb_samples/2)

    print '\nSet number of shots'
    fmc_adc.set_shots(nb_shots)

    fmc_adc.print_adc_core_config()


    #print '\nStart acquisition'
    #fmc_adc.start_acq()
    #print 'FSM state: ' + fmc_adc.get_acq_fsm_state()

    #print '\nSoftware trigger'