Connect, or Data Connector, is a new import framework introduced in OriginPro 2019b. This new framework offers speed, simplicity and data integrity advantages over Origin's older file import methods. For differences between Connectors and older import methods, see:
Data Connectors offer a higher degree of data protection than older import methods:
![]() | Note that "protection" does not prevent you from adding columns to the end of the worksheet for the purpose of transforming the imported data (e.g. via Set Values). Protection merely prevents you from altering the original data. Further, if you decide AFTER importing that you need to freely-edit imported data, you can remove Data Connectors by clicking the Connector icon |
Adding a Connector to a worksheet or matrix adds a Connector object to the top-left corner of the sheet. This object stores information used to maintain the connection to the data source.
To add a Connector to the active worksheet or matrix, do one of the following:
Different connection states show different icons:
![]() | When you mouse over a Connector icon, a tooltip displays the basic Connector information. Right-click inside the tooltip and Copy the information to the Clipboard. |
For Connector-specific dialog settings, please see the following topics:
Once a Connector is added, click the sheet's Connector icon to manage the connection.
Data Source | Open dialog to select or change data source
For data source from a disk file, the Data Source File Path dialog is opened. You can choose to browse and then save the data source path as
| ||
---|---|---|---|
Select | Reopen dialog to adjust the import settings or select the branch to import. | ||
Options | Available only for HTML Table Connector (Connect to File/Web). See this page for details. | ||
Post Import Scripts | Enter LabTalk scripts to run after import. See "Run Script After Import" section below for more of running post import scripts. | ||
Import Import All Books |
Import the source data into
| ||
Auto Import | Auto import can be triggered in one of the following cases:
| ||
Unlock Imported Data | Check this to enable editting imported data. If you click the Connector icon and choose Import to reimport data, the unlokced status will still be kept. To restroe the edit protections, select Select... to reimport data. | ||
Reset Post Import Actions | After importing, if you have some actions on imported data, e.g. delete some imported columns, you will need to select this menu to reset the actions before you can re-import data. | ||
Disconnect Sheet | Remove the connection between the worksheet/matrix and the data source. Also remove edit protections. The connector icon remains allowing you to reconnect to your data source (at which time, edit protections will be restored). | ||
Remove Data Connector Remove Connectors from All Books |
Permanently remove Data Connectors from
Edit protections are removed from all sheets. In addition, remove Exclude Imported When Saving check mark. | ||
Exclude Imported When Saving† | Check it to clear the imported data but keep the connection when saving the workbook or project, which helps to decrease the project size, and allows to simply re-import the data when needed. If a graph is plotted from the imported data, there is also a download button appearing on the graph after the imported data has been cleared.
| ||
Common Data Path | Set a common data path which can be used to quickly access source files by Data Source menu. This path shares between all books in the project and will be saved with the project.
It is typical to set the parent folder as Common Data Path. The advantage is even greater if you set the Common Data Path to a shared folder accessed by your group members and then share the project with them. | ||
Pause Check File | If the source file is found not existed after checking a few times, data connector will not check anymore, and this menu Pause Check File will show as checked. You will need to actively uncheck this menu to start the idle checking again. | ||
Duplicate Sheet with More Files | Clone the current worksheet, e.g. import settings (including Post Import Scripts) and any analysis actions, and import new files selected in the pop-up dialog.
See also Clone Import in the next section. |
Connect Multiple Files | Currently some Connector types support import multiple files at a time, for example, CSV and Excel Connectors for workbook, Matlab, MetroPro, and WDF Connectors for matrix. Refer to this document for dialog details. | ||
---|---|---|---|
Clone Import | Available for data imported by Data: Import from File menu. After you import a data file by Import from File menu, Clone Import will use the active workbook (including import settings) as template to import new file into a duplicate of current workbook. If the current workbook contains analysis, recalculation in the duplicate is triggered automatically regardless of the analysis tool's Recalculate mode. If the current workbook contains N import sheets, Clone Import will group every N data files in order of selection and import the same group in one book accordingly.
|
By default, when connecting to files of less than 500kB in size, data are saved with the project; data of larger files are not saved with the project.
Modify default data exclusion behaviors using these LabTalk system variables:
To manually override default data excluding behaviors for a given window:
Regardless of import file size or the state of @DNS, @FSE or @FSEW, you can save data with the project in these ways:
You can post-process data upon import, regardless of the current value of @IPDC, and without breaking the connection to source data. This can be done by following 2 ways.
To open the Post Import Script dialog,
![]() |
For example, after import table January 1903 Boston Weather from web page-Boston Weather in 1903, we would like to add a user-defined parameter row "Mean" to show the mean value of each column. wks.userparam(++Mean); loop(i,2,wks.dc.c2) { wcol(i)[Mean]$="=Mean(this)";} Then we can select multiple tables in the navigate panel (by dragging) and use Connect by Duplicating Active Sheet context menu to import all 12 months tables using the settings of the active sheet.
|
You can also embed LabTalk script using the worksheet's Properties dialog box (Worksheet: Worksheet Script).
![]() |
The following example shows calling the wdeldup X-Function to remove duplicate values in a reference column (column 1) by averaging associated values in other columns. See more examples in this OriginLab blog post. |
Other things to note:
Besides those supporting Connect Multiple Files, most Connector kinds can import one file/table at a time. If you want to import multiple table on the same webpage, or multiple files in the same path, you can use Add Worksheet menu to quickly import them to the same workbook.
To import multiple files/tables into one book:
Note that each workbook can have different data sources, but only one particular connector type (such as Text/CSV, JSON or OPJU). That is, each worksheet in it can have its own data source that is supported by that connector type.
To import data types not in the default menu: