|
|
|
|
@ -190,6 +190,33 @@ if args.fromfile:
|
|
|
|
|
print()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
s = socket.socket() # Establish a TCP/IP socket object
|
|
|
|
|
instrConnect(s, ip_address, port, 20000, 0, 0)
|
|
|
|
|
|
|
|
|
|
Configure_Backplane(s)
|
|
|
|
|
|
|
|
|
|
if args.view == "R":
|
|
|
|
|
viewer = liveview.ResistanceView(maximum=4000)
|
|
|
|
|
|
|
|
|
|
x = 0
|
|
|
|
|
y = 0
|
|
|
|
|
print()
|
|
|
|
|
for ch1 in [*range(1001, 1031)] + [*range(2001, 2031)] + [*range(3001, 3031)]:
|
|
|
|
|
for ch2 in [*range(1031, 1061)] + [*range(2031, 2061)] + [*range(3031, 3061)]:
|
|
|
|
|
full_matrix[x][y]=diff_4W_mess(s, ch1, ch2)
|
|
|
|
|
if args.view == "R":
|
|
|
|
|
point_specific_matrix=get_mapped(full_matrix[x])
|
|
|
|
|
viewer.updateView(point_specific_matrix)
|
|
|
|
|
y+=1
|
|
|
|
|
y=0
|
|
|
|
|
x+=1
|
|
|
|
|
|
|
|
|
|
done()
|
|
|
|
|
|
|
|
|
|
# Close the socket connection
|
|
|
|
|
instrDisconnect(s)
|
|
|
|
|
|
|
|
|
|
if args.view == "N":
|
|
|
|
|
neighview = np.zeros(shape=(30,32))
|
|
|
|
|
|
|
|
|
|
@ -215,35 +242,9 @@ if args.fromfile:
|
|
|
|
|
|
|
|
|
|
i+=1
|
|
|
|
|
|
|
|
|
|
viewer = liveview.ResistanceView(maximum=4000)
|
|
|
|
|
viewer = liveview.ResistanceView(maximum=full_matrix.max())
|
|
|
|
|
viewer.updateView(neighview)
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
s = socket.socket() # Establish a TCP/IP socket object
|
|
|
|
|
instrConnect(s, ip_address, port, 20000, 0, 0)
|
|
|
|
|
|
|
|
|
|
Configure_Backplane(s)
|
|
|
|
|
|
|
|
|
|
if args.view == "R":
|
|
|
|
|
viewer = liveview.ResistanceView(maximum=4000)
|
|
|
|
|
|
|
|
|
|
x = 0
|
|
|
|
|
y = 0
|
|
|
|
|
print()
|
|
|
|
|
for ch1 in [*range(1001, 1031)] + [*range(2001, 2031)] + [*range(3001, 3031)]:
|
|
|
|
|
for ch2 in [*range(1031, 1061)] + [*range(2031, 2061)] + [*range(3031, 3061)]:
|
|
|
|
|
full_matrix[x][y]=diff_4W_mess(s, ch1, ch2)
|
|
|
|
|
if args.view == "R":
|
|
|
|
|
point_specific_matrix=get_mapped(full_matrix[x])
|
|
|
|
|
viewer.updateView(point_specific_matrix)
|
|
|
|
|
y+=1
|
|
|
|
|
y=0
|
|
|
|
|
x+=1
|
|
|
|
|
|
|
|
|
|
done()
|
|
|
|
|
|
|
|
|
|
# Close the socket connection
|
|
|
|
|
instrDisconnect(s)
|
|
|
|
|
|
|
|
|
|
if args.view == "M":
|
|
|
|
|
viewer = liveview.ResistanceView(maximum=full_matrix.max())
|
|
|
|
|
|