1.7 Gadgets


In this lesson, we will use gadgets to perform exploratory analysis of data in a graph.

Integrate Gadget

  1. Start with the project saved from the previous lesson and add a new folder named Gadgets at the root level in Project Explorer, then go to that folder.
  2. With the new workbook active, click the Import Single ASCII button Button Import Single ASCII.png on the Standard toolbar and import the file <Origin EXE Path>\Samples\Curve Fitting\Multiple Gaussians.dat.
  3. We will add long names for the datasets. Enter "Peak 1" in the Long Name label row of column B. Click and select the long name cell. Then move the mouse to the lower-right corner of the cell so that the cursor changes to "+". Click the left mouse button and drag from column C to E. Origin will auto-fill the names as Peak 2, Peak 3 and Peak 4.
  4. Click and drag on the column headers to highlight columns B to E. From the main menu, select Plot > 2D: Multi-Y: Stacked Lines by Y Offsets to create a stacked lines graph.
  5. With the graph active, select Gadgets: Integrate... from the main menu.
  6. Accept the default settings and press the OK button. A region-of-interest (ROI) box will be placed on the graph. Move and/or resize the ROI to cover a desired range of the data.
  7. Click on the triangle button at the top-right corner of the ROI box and select Preferences to re-open the dialog.
  8. In the Output tab, expand the Output Quantities to branch and select the Append to Worksheet check box . Click OK to close the dialog box.
  9. When there are multiple plots in a layer, the gadget acts on the active data plot by default. In this case, the active plot is Peak 1. To change the data to Peak 3 for example, click on the triangle button at the top-right corner of the ROI box and select Change Data: Plot(3): Peak 3 from the context menu.
    Gadgets 01.png
  10. Click on the triangle button again and select New Output for All Curves. A workbook with integration results for all curves will be generated. Click the triangle button and select Go to Report Worksheet to switch to the output workbook.
  11. Click the X button at the top-right corner of the ROI box in the graph to remove the gadget.

FFT Gadget

  1. Start with a new workbook, and import the file <Origin EXE Path>\Samples\Signal Processing\Chirp Signal.dat.
  2. Highlight column B, then select Plot > 2D: Line: Line from the main menu to create a line graph.
  3. With the graph active, select Gadgets: FFT from the main menu. Accept defaults in the dialog that opens, and click OK. An ROI box will be placed on the graph, and another graph named FFTPREVIEW will be created, displaying the FFT result.
  4. In the top right corner of the FFTPREVIEW graph, uncheck Log Scale. Then reposition the source line graph and FFTPREVIEW window side by side. Move and resize the ROI to cover a small range of the beginning of the data curve.
  5. Now you can use the arrow keys to move the ROI to the right, while watching the FFT result update in the other graph.
    Gadgets 02.png
  6. Save the project file.