Skip to content

get_isoflux_segment_data.m

Basic Information

  SYNTAX:  [segRZ,segusage,segalg,gp,gd,gi,tp,td,ti] = get_isoflux_segment_data(shot,t0,datafunc,dt,nseg,algD)

  PURPOSE: Retrieves segment names, usage, and algorithms for a given shot & time

  INPUT: [default]
     shot = Shot number
     t0 = Desired time for target (s)
     datafunc = Function handle to data collection function
     dt = Interval around time to collect target data (s) [0.02]
                (function must be of form [d,t,ier] = f(shot,signal,tmin,tmax))
     nseg = number of isoflux segments (optional, default=18)
     algID = algorithm identifier, e.g., 'D' for isodnull, 'S' for isosnull (needed
        only if gains and tau values requested)

  OUTPUT:
     segRZ = [R,Z] coordinates of segment control points at time t0 (m)
     segusage = Usage specification (0:Ignored, 1-4:Ref 1-4, 5:No Ref)
     segalg = Segment algorithm (1: Flux, 2: Br, 3: Bz 4: Locate touch point)
              (Note this is in build_design_model format and does not
               distinguish between "at control point" and "at target"
               at this time)
     gp,gd,gi = PID gains at the time t0
     tp,td,di = PID tau values at the time t0

  RESTRICTIONS: Usage/alg targets must not change in interval [t0-dt,t0+dt]

  METHOD:

Dependencies