programOutputChannelParam()

Description

Sends a single output channel parameter to the Pulse Pal device.

  • This is faster than syncAllParams, and is preferred in closed-loop feedback applications where a single parameter must be quickly adjusted.

  • Each parameter is described in depth in the Parameter guide.

Syntax

programOutputChannelParam(paramName, channel, value)

Parameters

  • paramName: An integer or string specifying the parameter to change.

    • In time-critical applications (i.e. closed-loop), specify the parameter by its numerical code (see equivalent function in MATLAB client for code table)

    • In less constrained applications, paramName contains a string with the parameter field name (i.e. "phase1Voltage" or "linkTriggerChannel1")

  • channel: The output channel to program (1-4)

  • value: The value of the parameter. Acceptable range depends on parameter being set.

Returns

None

Example

myPulsePal.programOutputChannelParam('isBiphasic', 1, 1) # Program output channel 1 to use biphasic pulses

myPulsePal.programOutputChannelParam('phase1Voltage', 3, 10) # Program ch 3 to use +10V for phase 1 of biphasic pulses

myPulsePal.programOutputChannelParam(3, 1, -10) # Parameters can also be specified by their parameter code