anything wrong with this module?
#module FSPMA_ATP.py
def FSPMAtest():
print(“”)
print(“========================================================================”)
print(“APAS- ATE (Automatic Test Equipment Report).”)
print(“========================================================================”)
print(“LRU:”)
print(“Flap/Slat Position Module Assembly A/C: B757/767 “)
print(“P.N: 285T0099-Series ATA 27-58-51 Rev: 39 Dated:May 14/2020 “)
print(”========================================================================”)
print(””)
print(“Functional Test Specification:”)
print(“------------------------------”)
print(“The return to service documentation for this unit, is contained”)
print(“and available in an End Item Support Index (EISI).”)
print(“This information includes any applicable FTR, ATLAS, or TSDP.”)
print(“========================================================================”)
#WOmain.destroy()
FSPMA_ATP = Toplevel()
FSPMA_ATP.geometry(‘1890x950+10+65’)
FSPMA_ATP.title(“Universal ATLAS Acceptance Test Procedure”)
create a notebook
note = ttk.Notebook(FSPMA_ATP)
note.pack(expand=1, fill=“both”)
#tab0 = ttk.Frame(note)
tabbit = ttk.Frame(note)
tab1 = ttk.Frame(note)
tab2 = ttk.Frame(note)
tab3 = ttk.Frame(note)
tab4 = ttk.Frame(note)
tab5 = ttk.Frame(note)
BIT Test presentation
Label(tabbit, text =“Initial Positions.”,font = (‘Arial’, 14, “bold”)).pack()
Label(tabbit, text ="- The BIT information is used to identify errors, ",font = (‘Arial’, 12)).pack()
Label(tab1, text =" ", font = (‘Arial’, 12, “bold”)).pack()
Test 1 presentation
Label(tab1, text =" ",font = (‘Arial’, 12, “bold”)).pack()
Label(tab1, text =“Test 5.1: Continuity Test.”,font = (‘Arial’, 14, “bold”)).pack()
Label(tab1, text =" ", font = (‘Arial’, 12, “bold”)).pack()
Button(tab1, text=‘Enter’,font = (‘Arial’, 12, “bold”), command = open_testNo1).pack(padx=0, pady=0)
Test 2 presentation
Label(tab2, text =“Test 5.2: Flap Circuit Test.”,font = (‘Arial’, 14, “bold”)).pack()
Label(tab2, text =" ", font = (‘Arial’, 12, “bold”)).pack()
Button(tab2, text=‘Enter’,font = (‘Arial’, 12, “bold”), command = open_testNo1).pack(padx=0, pady=0)
Test 3 presentation
Label(tab3, text =“Test 5.3: Stabilizer Channel.”,font = (‘Arial’, 14, “bold”)).pack()
Label(tab3, text =" ", font = (‘Arial’, 12, “bold”)).pack()
Button(tab3, text=‘Enter’,font = (‘Arial’, 12, “bold”), command = open_testNo1).pack(padx=0, pady=0)
Test 4 presentation
Label(tab4, text =“Test 5.4: Monitor Circuit.”,font = (‘Arial’, 14, “bold”)).pack()
Label(tab4, text =" ", font = (‘Arial’, 12, “bold”)).pack()
Button(tab4, text=‘Enter’,font = (‘Arial’, 12, “bold”), command = open_testNo1).pack(padx=0, pady=0)
Test 5 presentation
Label(tab5, text =“Test 5.5: BITE Circuit.”,font = (‘Arial’, 14, “bold”)).pack()
Label(tab5, text =" ", font = (‘Arial’, 12, “bold”)).pack()
Button(tab5, text=‘Enter’,font = (‘Arial’, 12, “bold”), command = open_testNo1).pack(padx=0, pady=0)
#note.add(tab0, text = “Init. Pos.”)
note.add(tabbit, text = " Initial Positions ", compound=TOP)
note.add(tab1, text = " Test 5.1 ")
note.add(tab2, text = " Test 5.2 ")
note.add(tab3, text = " Test 5.3 ")
note.add(tab4, text = " Test 5.4 ")
note.add(tab5, text = " Test 5.5 ")
note.pack()
def initial_pos():
#Initial Positions…
Message(tab0, text="Initial Positions for FSPMA 285T0099 Family… "
"=================================== "
"- Connect together AC Neutral, DC Ground and J1-25. "
"- Connect 28Vdc to K1-27(H) and J1-26(L). "
"- Connect 115Vac/400Hz to J1-30(H) and J1-29(N). "
"- Connect 5Vac to J1-28(H) and J1-29(L). "
"- HS Arinc 429 Tx1 to J1-2(A) and J1-3(B). "
"- LS Arinc 429 Rx1 to J1-8(A) and J1-9(B). "
"- LS Arinc 429 Rx2 to J1-16(A) and J1-17(B). "
“- ARINC Transmitters and Power Supplies OFF.”,font = (‘Arial’, 10),fg=‘black’, relief=GROOVE).pack(padx=10, pady=10)
def open_testbit():
FSPMA_testbit = Toplevel()
#CDU_testbit.geometry(‘640x300+78+185’)
FSPMA_test1.geometry(‘1590x780+150+178’)
FSPMA_testbit.title(“Initial Positions”)
print(“Initial Positions”)
print(“-----------------------------------------------------”)
print(" This test checks the voltages of the power")
print(" supplies. The DC voltages and annunciator" )
print(" outputs of the power supply are sampled" )
print(" and converted to digital equivalent," )
print(" that are output to the test station." )
print(“-----------------------------------------------------”)
Label(FSPMA_testbit, text =" “,font = (‘Arial’, 14, “bold”)).grid(row=0, column=0, sticky=‘W’)
Label(FSPMA_testbit, text =”- Verify initial positions.“,font = (‘Arial’, 12)).grid(row=3, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Activate ATP mode.“, font = (‘Arial’, 12)).grid(row=4, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Activate LOC1 and LOC2.“,font = (‘Arial’, 12)).grid(row=5, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Apply Power Supplies.“,font = (‘Arial’, 12)).grid(row=6, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Verify unit gets into BIT pocess for a few seconds.“,font = (‘Arial’, 12)).grid(row=7, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” “,font = (‘Arial’, 12)).grid(row=8, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” “,font = (‘Arial’, 12)).grid(row=9, column=2, sticky=‘W’)
skip = Button(FSPMA_testbit, text=” Quit ", font = (‘Arial’, 12, “bold”))
skip [‘command’] = FSPMA_testbit.withdraw
skip.grid(row=14, column=2, sticky=‘E’, padx=2)
cont = Button(FSPMA_testbit, text=“Continue”, font = (‘Arial’, 12, “bold”), command = open_testbit_1).grid(row=14, column=3, sticky=‘W’, padx=2)
def open_testbit_1():
FSPMA_testbit = Toplevel()
FSPMA_testbit.geometry(‘760x380+20+118’)
FSPMA_testbit.title(“Built-In Test. “)
print(“Initial Positions”)
print(”-----------------------------------------------------”)
print(" This test checks the voltages of the power")
print(" supplies. The DC voltages and annunciator" )
print(" outputs of the power supply are sampled" )
print(" and converted to digital equivalent," )
print(" that are output to the test station." )
print(“-----------------------------------------------------”)
Label(FSPMA_testbit, text =" “,font = (‘Arial’, 14, “bold”)).grid(row=0, column=0, sticky=‘W’)
Label(FSPMA_testbit, text =”- Verify initial positions.“,font = (‘Arial’, 12)).grid(row=3, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Activate ATP mode.“, font = (‘Arial’, 12)).grid(row=4, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Activate LOC1 and LOC2.“,font = (‘Arial’, 12)).grid(row=5, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Apply Power Supplies.“,font = (‘Arial’, 12)).grid(row=6, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Verify unit gets into BIT pocess for a few seconds.“,font = (‘Arial’, 12)).grid(row=7, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” (Unit shows black display and certain operation in Annunciators is noted, “,font = (‘Arial’, 9, ‘italic’)).grid(row=8, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” verify unit shows BIT PASS, customer P/N and jump to an empty MENU.“,font = (‘Arial’, 9, ‘italic’)).grid(row=9, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Delay 70 secs minimum.“,font = (‘Arial’, 12)).grid(row=10, column=2, sticky=‘W’)
skip = Button(FSPMA_testbit, text=” Quit ", font = (‘Arial’, 12, “bold”))
skip [‘command’] = FSPMA_testbit.withdraw
skip.grid(row=14, column=2, sticky=‘E’, padx=2)
cont = Button(FSPMA_testbit, text=“Continue”, font = (‘Arial’, 12, “bold”), command = open_testbit_2).grid(row=14, column=3, sticky=‘W’, padx=2)
def open_testbit_2():
FSPMA_testbit = Toplevel()
FSPMA_testbit.geometry(‘760x380+20+118’)
FSPMA_testbit.title(“Built-In Test. “)
print(“BIT.”)
print(”-----------------------------------------------------”)
print(" This test checks the voltages of the power")
print(" supplies. The DC voltages and annunciator" )
print(" outputs of the power supply are sampled" )
print(" and converted to digital equivalent," )
print(" that are output to the test station." )
print(“-----------------------------------------------------”)
Label(FSPMA_testbit, text =" “,font = (‘Arial’, 14, “bold”)).grid(row=0, column=0, sticky=‘W’)
Label(FSPMA_testbit, text =”- Transmitting.“,font = (‘Arial’, 12)).grid(row=3, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Verify display shows some information after MCDU Test,“, font = (‘Arial’, 12)).grid(row=4, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” S/N, ETI, C-BIT, intermittent, faults and power cycles.“,font = (‘Arial’, 12)).grid(row=5, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Verify label 111 is being received.“,font = (‘Arial’, 12)).grid(row=6, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Delay 20 secs minimum.“,font = (‘Arial’, 12)).grid(row=7, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Deactivate ATP mode.“,font = (‘Arial’, 12)).grid(row=8, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”- Press CDU INDEX key.“,font = (‘Arial’, 12)).grid(row=9, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” “,font = (‘Arial’, 12)).grid(row=10, column=2, sticky=‘W’)
skip = Button(FSPMA_testbit, text=” Quit ", font = (‘Arial’, 12, “bold”))
skip [‘command’] = FSPMA_testbit.withdraw
skip.grid(row=14, column=2, sticky=‘E’, padx=2)
cont = Button(FSPMA_testbit, text=“Continue”, font = (‘Arial’, 12, “bold”), command = open_testbit_3).grid(row=14, column=3, sticky=‘W’, padx=2)
def open_testbit_3():
FSPMA_testbit = Toplevel()
FSPMA_testbit.geometry(‘760x380+20+118’)
FSPMA_testbit.title(“Built-In Test. “)
print(“BIT.”)
print(”-----------------------------------------------------”)
print(" This test checks the voltages of the power")
print(" supplies. The DC voltages and annunciator" )
print(" outputs of the power supply are sampled" )
print(" and converted to digital equivalent," )
print(" that are output to the test station." )
print(“-----------------------------------------------------”)
Label(FSPMA_testbit, text =" “,font = (‘Arial’, 14, “bold”)).grid(row=0, column=0, sticky=‘W’)
Label(FSPMA_testbit, text =”- Verify a MENU window is shown, Current Day, Test Spec,“, font = (‘Arial’, 12)).grid(row=3, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” PA1966 for ATLAS 552353-10-01.“, font = (‘Arial’, 12)).grid(row=4, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” PA2206 for ATLAS 557435-05-01.“,font = (‘Arial’, 12)).grid(row=5, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” Model Number: “,font = (‘Arial’, 12)).grid(row=6, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” Test Software PN: “,font = (‘Arial’, 12)).grid(row=7, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” OFP Software PN: “,font = (‘Arial’, 12)).grid(row=8, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =” Route Card OP Number:“, font = (‘Arial’, 12)).grid(row=9, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =”(from this menu some information can be collected to be verifed after “,font = (‘Arial’, 9, ‘italic’)).grid(row=10, column=2, sticky=‘W’)
Label(FSPMA_testbit, text =“during test steps.”,font = (‘Arial’, 9, ‘italic’)).grid(row=11, column=2, sticky=‘W’)
skip = Button(FSPMA_testbit, text=” Quit ", font = (‘Arial’, 12, “bold”))
skip [‘command’] = FSPMA_testbit.withdraw
skip.grid(row=14, column=2, sticky=‘E’, padx=2)
cont = Button(FSPMA_testbit, text=“Continue”, font = (‘Arial’, 12, “bold”), command = donothing).grid(row=14, column=3, sticky=‘W’, padx=2)
def open_testNo1():
FSPMA_test1 = Toplevel()
FSPMA_test1.geometry(‘1590x780+150+168’)
FSPMA_test1.title("Test 5.1: Continuity Test. ")
#Open(1)
print("----------------------------------------------------")
print("Test 5.1: Continuity Test. ")
print("Measuring resistance between:")
print("RVDT Excitation Signals")
print("----------------------------------------------------")
print("(101001) pins 7, 9 Required: 0 to 2 ohms __________")
print("(101002) pins 7, 35 Required: 0 to 2 ohms __________")
print("(101003) pins 8, 31 Required: 0 to 2 ohms __________")
print("(101004) pins 8, 10 Required: 0 to 2 ohms __________")
print("(101005) pins 8, 13 Required: 0 to 2 ohms __________")
print("(101006) pins 8, 33 Required: 0 to 2 ohms __________")
print("----------------------------------------------------")
Label(FSPMA_test1, text =" Measuring resistance between: ",font = ('Arial', 14, "bold")).grid(row=0, column=0, sticky='W')
Label(FSPMA_test1, text =" 5.1.1 RVDT Excitation Signals ",font = ('Arial', 14, "bold")).grid(row=1, column=1, sticky='W')
Label(FSPMA_test1, text ="______________________________________________________________________________ ",font = ('Arial', 12)).grid(row=3, column=1, sticky='W')
Label(FSPMA_test1, text =" ",font = ('Arial', 12)).grid(row=4, column=1, sticky='W')
Label(FSPMA_test1, text ="(101001) pins 7 and 9 Required: 0 to 2 ohms = ohms",font = ('Arial', 12)).grid(row=5, column=1, sticky='W')
Label(FSPMA_test1, text ="(101002) pins 7 and 35 Required: 0 to 2 ohms = ohms",font = ('Arial', 12)).grid(row=6, column=1, sticky='W')
Label(FSPMA_test1, text ="(101003) pins 8 and 31 Required: 0 to 2 ohms = ohms",font = ('Arial', 12)).grid(row=7, column=1, sticky='W')
Label(FSPMA_test1, text ="(101004) pins 8 and 10 Required: 0 to 2 ohms = ohms",font = ('Arial', 12)).grid(row=7, column=1, sticky='W')
Label(FSPMA_test1, text ="(101005) pins 8 and 13 Required: 0 to 2 ohms = ohms",font = ('Arial', 12)).grid(row=8, column=1, sticky='W')
Label(FSPMA_test1, text ="(101006) pins 8 and 33 Required: 0 to 2 ohms = ohms",font = ('Arial', 12)).grid(row=9, column=1, sticky='W')
Label(FSPMA_test1, text =" ",font = ('Arial', 12)).grid(row=10, column=1, sticky='W')
#Entry(open_testNo1, width=20).grid(row=0, column=1, padx=2, pady=2, sticky='we', columnspan=9)
skip = Button(FSPMA_test1, text=" Quit ", font = ('Arial', 12, "bold"))
skip ['command'] = FSPMA_test1.withdraw
skip.grid(row=18, column=3, sticky='E', padx=2)