How to add data panels to a design

In the following tutorial, we will add Data panels to an existing example design.

Note

A completed version of this design (including the updated “config_data_panels.py” file) can be found within the folder “systemlab_design\systemlab_examples\optical\optical_direct_detection_completed"

Part 1: Open the design projects “QPSK Design” and “Optical transmission IM”

  1. Launch a new application of SystemLab|Design by double left-clicking on the SystemLab-Design.exe executable file.

  2. From the Menu bar, select File/Open project and navigate to the folder “systemlab_design\systemlab_examples\optical\optical_direct_detection”

  3. Select the design project “Optical transmission IM” (it will have a suffix “.slb”) and click on the Open button.

  4. From the Menu bar, select File/Open project and navigate to the folder “systemlab_design\systemlab_examples\electrical\qpsk_design”

  5. Select the project “QPSK Design” and click on the Open button.

Part 2: Add new data panel objects to the project design space

  1. Within the “QPSK Design” project design space, hover over the data panel for BER Results and right-click and select Copy/paste data panel to another project.

  2. Within the Select project for pasting dialog, select “Optical transmission IM” from the pull down menu and select OK. [A copy of the BER Results data panel will appear within the project design space for “Optical transmission IM”]

../_images/Data_Panel_1.png
  1. Close the design project “QPSK Design” by left-clicking on the Close tab (X icon next to the project name in the upper left tab for the project design space of “QPSK Design”).

  2. Within the “Optical transmission IM” project design space, double left-click on the BER Results data panel item to open its Data panel properties dialog box (make sure to hover over the yellow (data section) region, as the title section will not activate the dialog).

  3. In the data field for Data source file name change the text to: “opt_im_1”.

../_images/Data_Panel_2.png
  1. Select OK to save the save the changes and close the dialog.

  2. Hover over the data panel for BER Results and right-click and select Copy/paste data panel.

  3. Double left-click on the copied version of BER Results to open its Data panel properties.

  4. In the data field for Data source file name change the text to: “opt_im_2”.

  5. Select the Title section (text settings) tab and update the Title field to “Receiver Analysis”.

../_images/Data_Panel_3.png
  1. Select OK to save the changes and close the dialog.

Part 3: Update the fb_scripts for “BER Analysis” and “PIN-APD”

  1. Double left-click on the BER Analysis functional block to open its properties panel.

  2. Select the Edit script icon (next to Script module name) to view the script for “BER_Analysis_Opt_IM”.

  3. Under the section for “RESULTS”, after ber_results (line 45), insert the following lines of code [In this section of code, four numerical results (from the CALCULATIONS section) are added to the data table list “opt_im_1”.]:

    #Send update to data box (data_table_opt_im_1)
    config.data_tables['opt_im_1'] = []
    data_1 = ['Iteration #', iteration, '0.0f', ' ']
    data_2 = ['Binary sequence length', binary_seq_length, 'n', ' ']
    data_3 = ['Errored bits', err_count, '0.0f', ' ']
    data_4 = ['Bit error rate', ber, '0.2E', ' ']
    data_list = [data_1, data_2, data_3, data_4]
    config.data_tables['opt_im_1'].extend(data_list)
    
  4. Click on the Save icon in the Tool Bar to save all the changes.

  5. Close the SciTE dialog (File/Exit)

  6. Close the functional block properties for BER Analysis.

  7. Double left-click on the PIN-APD functional block to open its properties panel.

  8. Select the Edit script icon (next to Script module name) to view the script for “PIN_Model_Opt_IM”.

  9. Below line 361 (pin_results list definition) insert the following lines of code:

    '''==DATA PANEL UPDATE========================================='''
    config.data_tables['opt_im_2'] = []
    data_1 = ['Iteration #', iteration, '.0f', ' ']
    data_2 = ['Received power (dBm)', rcv_pwr_dbm, '0.2f', ' ']
    data_3A = ['Q (target)', Q_target, '0.1f', ' ']
    data_3B = ['BER (target)', ber_target, '0.2E', ' ']
    data_3C = ['Q (measured)', Q_measured, '0.2f', ' ']
    data_4 = ['Optical receiver sensitivity (dBm)', pwr_sensitivity_dbm, '0.2f', ' ']
    data_list = [data_1, data_2, data_3A, data_3B, data_3C, data_4]
    config.data_tables['opt_im_2'].extend(data_list)
    
  10. Click on the Save icon in the Tool Bar to save all the changes.

  11. Close the SciTE dialog (File/Exit).

  12. Close the functional block properties for PIN-APD.

  13. Drag the data panel for Receiver Analysis and place it over the Decision Circuit functional block as follows (to drag scene items, left-click hold on the item to be dragged and left-click release once in the target postion)

../_images/Data_Panel_4.png

Fig 1: Copy/paste data panel to another project

  1. Select the Save icon on the Tool bar of the main application to save all the changes made to the project design for “Optical transmission IM”.

Part 4: Run a simulation to test the operation of the data panels

  1. On the Tool bar, select the Start button to initiate the simulator. [Data results should appear in both data panels as shown below.]

../_images/Data_Panel_5.png
  1. We see that the data results for the Receiver Analysis panel are exceeding the panel’s dimensions. To adjust the panel’s dimension settings, double left-click to open its properties and update the following data fields:

    1. Under Title section (box settings) set Dimensions (w) to “200”.

    2. Under Data section (box settings) set Dimensions (w) to “200” and Dimensions (h) to “80”.

    3. Under Data section (field settings) set Data field width to “140” and Value field width to “50”.

    4. Select OK to save all changes and to close the dialog.

../_images/Data_Panel_6.png
  1. On the Tool bar, select the Start button to re-run the simulator. [The data panel dimensions should now be aligned with the results!]

../_images/Data_Panel_7.png

This completes the tutorial on how to add data panels to a design!