ProgramPulsePalParam()

Description

Sends a single channel parameter to the Pulse Pal device. 

Syntax

ConfirmBit = ProgramPulsePalParam(OutputChannel, ParameterCode, ParameterValue)

Parameters

Returns

ConfirmBit =

1 if parameter was changed successfully.

0 if an error occurred during transmission.

Example

% 1. This code changes the pulse amplitude of monophasic pulses on channel 3 to -7.5 volts if condition x is true.

ConditionX = 1;

if ConditionX == 1

    ProgramPulsePalParam(3, 0, -7,5);

end


% 2. This code changes the stimulus train duration on channel 1 to 10 seconds, soft-triggers the stimulus, adjusts the % train duration to 5 seconds, and triggers it again.

ProgramPulsePalParam(1, 8, 10);

TriggerPulsePal('1');

pause(10);

ProgramPulsePalParam(1, 8, 5);

TriggerPulsePal('1');