Changes between Version 2 and Version 3 of WARPLab/Examples/userExtension


Ignore:
Timestamp:
May 22, 2013, 3:37:40 PM (11 years ago)
Author:
chunter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WARPLab/Examples/userExtension

    v2 v3  
    66Note: the example class and the example script must be in the same directory as one another so that MATLAB can identify the location of the example class once the example script is run.
    77
    8 This example shows how custom commands can be added to the WARPLab Reference Design via a custom user extension class.
     8This example shows how custom commands can be added to the WARPLab Reference Design via a custom user extension class. Specifically, this script (with its corresponding user extension class) are capable of writing an arbitrary string to a WARP board's EEPROM. This memory is non-volatile, so this custom string will survive in memory across loss of power (e.g. reprogramming) on the board.
    99
    1010'''Requirements:'''
     
    2222== Observations ==
    2323
     24The first time this script is run, it will produce the following output on the MATLAB command line:
     25
     26{{{
     27Current EEPROM Contents:
     28Node 1: ''
     29Node 2: ''
    2430
    2531
    26 == Explanation ==
     32Writing EEPROM Contents:'Hello World'
     33}}}
     34
     35Before this script is run, the contents of the sections of EEPROM used by this example are empty. This is why the current EEPROM contents show a blank string. When run a second time, the following output can be seen on the MATLAB command line:
     36
     37{{{
     38Current EEPROM Contents:
     39Node 1: 'Hello World'
     40Node 2: 'Hello World'
     41
     42
     43Writing EEPROM Contents:'Hello World'
     44}}}
     45
     46This time, "Hello World" was read from the board.
     47
     48