HeinzLabPurdue / NEL

NEL1 code
0 stars 3 forks source link

Steps to convert External Code into NEL (e.g. WBMEMR) #49

Closed sivaprakasaman closed 1 year ago

sivaprakasaman commented 1 year ago

What MH/AS did to convert WBMEMR Ipsi into button

  1. Made new button (WBMEMR) w/old working code (DPOAE)
    1. Create WBMEMR in Menu_Tools (app.Menu_Tools_WBMEMR)
      • From dropdown a + will appear below the last one in the list. Click that to add new Menu item, then rename in the right side panel under app.Menu_Tools. Under Text in the right-side panel (bottom) rename to the correct label.
        1. PushButton Callback (WBMEMR_PB_Callback) is created when PB is made to call Menu_Tools reference
        2. In the PB callback, need to reference convertToGUIDECallbackArguments(app, event) to get eventdata
        3. Pass eventdata into the Menu_Tools_WBMEMR_Callback(app, eventdata)
        4. In Menu_Tools_WBMEMR callback is where book-keeping for figure and external check_in and check_out.
        5. See Menu_Tools_WBMEMR_Callback(app, event) for example. 2. Update external script (WBMEMR) to work with NEL wiring
  2. Document all DPOAE steps
    1. Put all files related to your app in a folder in NEL_matlab
    2. Make sure to add path in startup addpath([root_dir WBMEMR]); startup.m is in nel_general

Notes:

DPOAE (from menu_tools callback):

  1. get h_dpoae from distortion_product
  2. workspace folder has the dpoaebjm.mat figure
  3. Initialization of h_fig (line 99 in distortion_product) carries the 'DPOAE_Main_Fig' tag
  4. Line 205 runs dpoae
  5. in dpoae.m,