PWRRAMP.New()

Type: CLASS FUNCTION

Purpose: Create a new PwrRamp signal object.

Usage:

Signal = PWRRAMP.New (

Tag,

Pstat,

InitialValue,

FinalValue,

ScanRate,

LimitValue,

Gain,

MinDif,

MaxStep,

SamplePeriod,

PerturbationRate,

PerturbationPulseWidth,

TimerRes,

Mode,

WorkingPositive

)

Tag

  • STRING
  • Tag for object identification.

Pstat

InitialValue

  • REAL
  • The initial value to be set by the signal object. The units of this value depend upon the mode selected. The units are either volts, amperes, ohms, or watts.

FinalValue

  • REAL
  • The final value of the signal ramp. The units of this value depend upon the mode selected.

ScanRate

  • REAL
  • The scan rate, entered in units/second, where units is defined by the mode of the signal.

LimitValue

  • REAL
    • This value is used to specify a limit used in calculating the signal. It is not used for PWR_MODE_CURRENT_DISCHARGE or PWR_MODE_CURRENT_CHARGE. Enter 0.0.

For PWR_MODE_VOLTAGE it is the maximum current to be encountered, entered in amperes.

For PWR_MODE_POWER it is the minimum voltage to be encountered, entered in volts.

For PWR_MODE_RESISTANCE it is the maximum voltage to be encountered, entered in volts.

Gain

  • REAL
  • This is the gain used during the feedback loop. Leave this at the default value.
  • PWR800_DEFAULT_GAIN

MinDif

  • REAL
  • This is the percentage above/below the nominal value, used during a perturbation. The nominal value is the current that is being applied by the signal. It is entered as a decimal, where 1.0 = 100%. Leave this at the default value.
  • PWR800_DEFAULT_MINIMUM_DIFFERENCE

MaxStep

  • REAL
  • This is the percentage of full-scale that is used to limit the maximum step in current during the feedback loop. The I/E current range determines the full-scale value. The percentage is entered as a decimal, where 1.0 = 100% of the scale. Leave this at the default value.
  • PWR800_DEFAULT_MAXIMUM_STEP

SamplePeriod

  • REAL
  • This is the sample period, entered in seconds. This signal performs a feedback loop. The TimerRes determines the speed of the timer. The SamplePeriod determines the timing of output points.

PerturbationRate

  • REAL
  • This is the time, entered in seconds, between perturbations of the signal. A perturbation is an increase followed by a matching decrease in the applied signal value. This perturbation allows the signal to determine the response of the cell so that the feedback loop can work properly.
  • Perturbations are only necessary in feedback modes. These modes are PWR_MODE_RESISTANCE, PWR_MODE_POWER, and PWR_MODE_VOLTAGE. Perturbations are skipped if the control algorithm determines they are not necessary. Leave this value at the default value.
  • PWR800_DEFAULT_PERTURBATION_RATE

PerturbationPulseWidth

  • REAL
  • This is the width of a perturbation, entered in seconds. A perturbation includes both an increase and a decrease; each is held for this amount of time.
  • Leave this at the default value.
  • PWR800_DEFAULT_PERTURBATION_WIDTH

TimerRes

  • REAL
  • This is the fundamental timer setting of the instrument in seconds. Leave it at the default.
  • PWR800_DEFAULT_TIMER_RESOLUTION

Mode

  • INDEX
  • This is the control mode of the signal. The following constants are valid values.

PWR_MODE_CURRENT_DISCHARGE

PWR_MODE_RESISTANCE

PWR_MODE_POWER

PWR_MODE_VOLTAGE

PWR_MODE_CURRENT_CHARGE

WorkingPositive

  • BOOL
  • This value specifies if the working connection is connected to the positive or negative terminal.

TRUE = Working connected to positive terminal

FALSE = Working connected to negative terminal

Signal OBJECT The created PWRRAMP object.

Related Topics Link IconRelated Topics