SyncPulsePalParams()

Description

Synchronizes the parameter fields of the Pulse Pal object to the Pulse Pal device.

  • Synchronization overwrites any changes made on the device using the stand-alone interface

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

Syntax

ConfirmBit = SyncPulsePalParams()

Parameters

  • None

Returns

ConfirmBit =

1 if parameters were synchronized successfully.

0 if an error occurred during transmission.

Examples

% 1. This code changes the pulse amplitude of monophasic pulses on channel 3 to -7.5 volts.

PulsePalSystem.Params.Phase1Voltage(3) = -7.5;

SyncPulsePalParams;


% 2. This code changes several parameters simultaneously.

% Set pulse train = 10 seconds long for all channels:

PulsePalSystem.Params.PulseTrainDuration(1:4) = 10;

%1ms pulse duration for channels 1, 2 and 4

PulsePalSystem.Params.Phase1Duration([1 2 4]) = 0.001;

SyncPulsePalParams; %Update Pulse Pal