Programming in Origin
Origin is designed to meet the graphing and analysis needs of scientists
and engineers in diverse areas of academics and industry. To accomplish
this, Origin provides a broad range of tools for importing, analyzing,
graphing, presenting, and exporting data. As you gain familiarity
with Origin, you may want to customize Origin to meet your specific
graphing and analysis needs. Common customization needs include:
- Added Functionality: Create new importing, analysis,
graphing, and exporting routines
- Automation/Batch
Processes: Create a routine that automatically performs the
tasks you do in Origin
- Simulations: Perform simulations with live feedback in
Origin. For instance, you might want to execute a Monte
Carlo Simulation that dynamically updates a graph.
- Automation
Server: Access Origin from other applications, such as
Microsoft® Excel, Microsoft® Visual Basic®, and National
Instruments LabVIEW.
- User-defined Fitting Functions: Create complex user-defined
curve fitting functions using Origins Advanced Fitting Tool's
direct link to Code Builder. This allows you to create and debug
fitting functions quickly and easily.

These types of customizations can be achieved effectively using
Origin's programming language, Origin C. Note: View our Origin
C Examples section for specific examples.
Origin C - Programming Language
Origin C is a programming language that supports ANSI C
plus some C++ features, including support for string, complex, vector
and matrix data types, as well as internal Origin objects like worksheets
and graphs.
Origin C - Programmable Dialog
Use a single Origin C command to create custom
dialog boxes for your graphing and analysis routines. This new
feature is a dynamically generated, easy-to-use, and powerful graphical
user interface device.
Origin C - Tree Structures
Tree
structures can be used to create: 1) entries in a programmable
Origin C dialog, as well as in other dialogs which gather user
input, 2) user-defined, tree-like data structures
Origin C - User-defined Classes
Origin C user-defined
classes allow Origin C programmers to create objects of their
own type with user-defined methods and data members.
Code Builder - Integrated Development Environment
Programs written in Origin C are compiled and linked in Code Builder, Origins built-in compiler. Code Builder provides users with a familiar programming language environment that includes color-coded editing and modern debugging capabilities.
 |
NAG® Software Partner
Origin includes essential elements of the numerical computational routines from Numerical Algorithms Group, Inc. (NAG®). Over 300 built-in NAG routines have been selected from the NAG C Library. These routines offer a large selection of time-tested numerical algorithms, such as Statistics, Fourier Transforms, Linear Algebra, Regression, Multivariate Analysis including Principal Component Analysis, and more.
All NAG function calls are accessible from Origin C to allow
you to develop applications that require advanced numerical
computation.
|
Other Resources
To learn more about how you can programmatically customize Origin, browse the pages offered in the Programming area by clicking on the desired link in the left navigation.
|