programTriggerChannelParam()
Description
Sends a single trigger 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.
Parameters are described in depth in the Parameter guide.
Syntax
programTriggerChannelParam(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. "triggerMode")
channel: The trigger channel to program (1-2)
value: The value of the parameter. Acceptable range depends on parameter being set.
Returns
None
Example
myPulsePal.programTriggerChannelParam('triggerMode', 1, 2) # Set trigger channel 1 to pulse gated mode
myPulsePal.programTriggerChannelParam('triggerMode', 2, 0) # Set trigger channel 2 to normal mode