The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Python
 Integration with originpro
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

PhipsKX

Germany
1 Posts

Posted - 09/19/2023 :  06:44:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin 2023b (64-bit) SR1
Operating System: Windows 11 Pro

Hi forum,

I am relativly new using origin via originpro with python so i might miss some information.

Untill now I cant find out how to use the integation method with originpro. My aim would be to load a number of datapoints and to integrate them automatically in a certain range.
It would be highly practical to have this option, at least for me.

Thanks for any help in advance

YimingChen

1609 Posts

Posted - 09/19/2023 :  2:00:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Could you try the Python script below:

import originpro as op
f = op.path('e')+r'Samples\Curve Fitting\Sensor01.dat'
wks = op.new_sheet()
wks.from_file(f)
start = 2
end = 10
op.lt_exec(f'integ1 iy:=Col(2)[{start}:{end}]')


James
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000