File Exchange
Try Origin for Free
The Origin Forum
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
|
Send File to Tech support
All Forums
Origin Forum for Programming
Forum for Python
xfunction in Python
Note:
Only the poster of this message, and the Moderator can edit the message.
Screensize:
640 x 480
800 x 600
1024 x 768
1280 x 1024
UserName:
Password:
Anti-Spam Code:
Format Mode:
Basic
Help
Prompt
Format:
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
1
2
3
4
5
6
Color
Black
Red
Yellow
Pink
Green
Orange
Purple
Blue
Beige
Brown
Teal
Navy
Maroon
LimeGreen
Forum:
Forum for Python
Subject:
Message:
* HTML is OFF
*
Forum Code
is ON
Smilies
Hello, I currently need to evaluate some spectra and would like to simplify this process using Origin Python. To do this, I read the raw data into Origin, run a filter over the data and create the graph including the plot and output it. In the following, I would like to use the x-function pa to run a pre-built theme over the data. The code snippet looks like this: #MyTheme = op.path('p') + "Themes\Spectraanalyisis.ois" #Read the theme Spectraanalyisis #MyTheme = op.path('p') + "Themes\Peakfinder.ois" #reading the Peakfinder theme #wks.lt_exec('pa iy:=col(B) smode:=1 theme:=MyTheme') #does not work like this wks.lt_exec('pa iy:=col(B) smode:=1 theme:=Peakfinder') #Calling the theme As you can see, I'm trying to do the whole thing with a LabTalk function. The Peakfinder theme stores the correct x-coordinates and y-coordinates of the peaks and puts them in a new sheet. The Spectraanalyisis theme retrieves the peak analyzer (pro) and creates the corresponding Plot_Data, Integration_Result, etc. sheets. Unfortunately, however, it does not create the additional graphs as it does when run manually. Several questions arise for me: Is it possible to get the generated data processed as after manual execution without running new fit functions etc. over it? (Peakfinder - x-coordinate as label at the peak in the graph, peak analyzer (pro) with Gaussfits graph etc.). Can I also access the x functions directly with python? Can I assign the themes to a variable as in the comment out attempt and then retrieve it later? (Like MyTheme) My Origin Version is OriginPro 2023 (64-bit) 10.0.0.154. Thanks for your help. Lg Pascal
Check here to subscribe to this topic.
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000