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, select Help: Open Folder: Sample Folder... to open the "Samples" folder. In this folder, open the Curve Fitting subfolder and find the file Multiple Gaussians.dat. Drag-and-drop this file into the empty worksheet to import it.
  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 > Basic 2D: 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 > Basic 2D: 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.