Skip to content

get_command_indices.m

Basic Information

  USAGE:  indices = get_command_indices(ind_struct,commands,tokamak)

  PURPOSE: returns the channel indices given contents of simulation_input.m and
        a list of command names used in a simulink simulation

  INPUTS:
    ind_struct  structure       data from simulation_includes.m
    commands    cell array      commands used as input into simulink simulation

  OUTPUTS:
    indices integer array       array of indexes linking commands with their associated values
                    as specified by simulation_includes.m (in the INTEL_DIR directory)

  RESTRICTIONS:

  METHOD:
    Get this from CMD variables in simulation_includes.m
       Every PCS uses some different naming convention.

Dependencies