Skip to content
Snippets Groups Projects
Select Git revision
  • bc1a0b4daf7afdc79955b4dfdde28d50a1cc2e59
  • main default protected
  • sumlab
  • dev/test_tobias
  • jack.rolph-main-patch-16563
  • jack.rolph-main-patch-96201
  • jack.rolph-main-patch-18340
  • jack.rolph-main-patch-15793
  • jack.rolph-main-patch-74592
  • 1.0.0
10 results

Bootstrapping.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    simple_connection.py 969 B
    import AmptekHardwareInterface as ahi
    amptek = ahi.AmptekHardwareInterface()
    #amptek.connectUDP("192.168.1.10", 10001, 1)
    amptek.connectUSB(-1)
    print("ping")
    print( amptek.Ping() )
    # print("status")
    # dat= amptek.readStatus(-1)
    print( "fnished" )
    amptek.GetSpectrum()
    
    config_names = ["RESC", "CLCK", "TPEA", "GAIF", "GAIN", "RESL", "TFLA", "TPFA", 
                   "PURE", "RTDE", "MCAS", "MCAC", "SOFF", "AINP", "INOF", "GAIA",
                   "CUSP", "PDMD", "THSL", "TLLD", "THFA", "DACO", "DACF", "DACF",
                   "RTDS", "RTDT", "BLRM", "BLRD", "BLRU", "AUO1", "PRET", "PRER",
                   "PREC", "PRCL", "PRCH", "HVSE", "TECS", "PAPZ", "PAPS", "SCOE",
                   "SCOT", "SCOG", "MCSL", "MCSH", "MCST", "AUO2", "TPMO", "GPED",
                   "GPGA", "GPMC", "MCAE", "VOLU", "CON1", "CON2"]
    print( "amptek.GetTextConfiguration( config_names )")
    configs = amptek.GetTextConfiguration( config_names )
    print(configs)
    print(amptek.SerialNb())
    print("done")