WriteEEPROMBytes()

Description

This function writes up to one 32-byte page of data to PulsePal's non-volatile (EEPROM) memory chip. An address map of Pulse Pal parameters in chip's memory is available here.

  • Only Pulse Pal 1 has an EEPROM memory. This function returns an error when connected to Pulse Pal 2+.

Syntax

Confirm = WriteEEPROMBytes(StartAddress, Data)

Parameters

  • StartAddress = the memory location to write to

  • Data = sequential bytes to write

Returns

1 if write was successful

Example

% This example sets the Phase1Voltage parameter for output channel 1 to -10V in Pulse Pal's EEPROM %memory. Note that the parameter will not be read from EEPROM to sRAM and affect Pulse Pal's function %until Pulse Pal is power-cycled by unplugging. Using the EndPulsePal command will over-write any manual %changes when current params are stored. The changed bytes can be read immediately with %ReadEEPROMBytes().

Confirm = WriteEEPROMBytes(33, 0);