Changed auth
Signed-off-by: Bernardo Carvalho <bernardo.carvalho@tecnico.ulisboa.pt>
This commit is contained in:
@@ -8,13 +8,13 @@ class mdsClient():
|
||||
Models
|
||||
"""
|
||||
|
||||
def __init__(self, host='epics.ipfn.tecnico.ulisboa.pt'):
|
||||
def __init__(self, host='epics.ipfn.tecnico.ulisboa.pt', user='oper'):
|
||||
"""
|
||||
Initializes the MDSPlus thin Connection
|
||||
"""
|
||||
self.conn = mdsthin.Connection(f'ssh://{host}')
|
||||
self.conn = mdsthin.Connection(f'ssh://{user}@{host}')
|
||||
|
||||
def openTree(self, tree='isttokmarte', shot=51608):
|
||||
def openTree(self, tree='isttokmarte', shot=51618):
|
||||
self.conn.openTree(tree, shot)
|
||||
|
||||
def getData(self, node):
|
||||
|
||||
@@ -22,6 +22,7 @@ app = pg.mkQApp("Plotting MARTe2 AtcaIop Data")
|
||||
# mw.resize(800,800)
|
||||
|
||||
# MAX_SAMPLES = 50000
|
||||
MDSPLUS_HOST = "192.168.1.173"
|
||||
ADC_CHANNELS = 14 # channels stored in ISTTOK MDS
|
||||
ADC_DECIM_RATE = 200 # FPGA decimation
|
||||
ADC_RAW = '\\TOP.HARDWARE.ATCA_2.IOP_9.CHANNEL_{}.ADC_DECIM'
|
||||
@@ -81,7 +82,7 @@ except mds.mdsExceptions.TreeFOPENR:
|
||||
exit()
|
||||
"""
|
||||
|
||||
client = mdsClient()
|
||||
client = mdsClient(MDSPLUS_HOST, user='oper')
|
||||
client.openTree(mdsTreeName, args.shot)
|
||||
|
||||
win = pg.GraphicsLayoutWidget(show=True, title="Basic plotting examples")
|
||||
|
||||
Reference in New Issue
Block a user