Skip to content

getmdsconn.m

Basic Information

  SYNTAX OPTIONS:
      [connObj, ier] = getmdsconn(serverTok)

  PURPOSE:  Establish a connection to an MDSplus server, return a
            connection object.

  INPUT:
    serverTok  = Either a hostname or a tokamak shortname:
                   'DIII-D', 'D3D' -> 'atlas.gat.com'
                'JET'  -> 'mdsplus.jet.efda.org'
                   'NSTX' -> 'birch.pppl.gov:8501'
                   'KSTAR'-> '203.230.126.212:8005'
                   'EAST' -> '202.127.204.12:8000'
                   'EAST@GA' -> 'eastdata.gat.com'

  OUTPUT:
    connObj = connection object used for getting data
    ier = error code = 0 if OK, else > 0


  EXAMPLES:
    [connObj, ier] = getmdsconn('d3d')
    [connObj, ier] = getmdsconn('NSTX')
    [connObj, ier] = getmdsconn('east@ga')


  RESTRICTIONS:
  (1)

  METHOD:

  WRITTEN BY:  Jayson Barr  ON  2/14/18

Dependencies