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
 Documentation and intention of Python scripts
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Karsten8

Germany
23 Posts

Posted - 11/11/2022 :  09:17:15 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

Dear Origin-team,

Do you offer a list of available python functions?
For example - a simple dialog like GetN in LT to ask for a user input - is this available in the origin.python-module?
Where can i search for available python function?

What is your long term planning with python in Origin?
Will python replace labtalk? This would mean you plan to offer all function from LT in Python?
Or is your intention that python scripts have to use LT-functions?

It would be great if you offer a programming guide for python in origin similar to the origin-c and LT-pdfs from your homepage.

Thanks and best regards,

Karsten8.

YimingChen

1618 Posts

Posted - 11/11/2022 :  10:37:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
To get input from user in Python, please try the line below:
val = input("Enter your value: ")


We do have the help document of Python in Origin. Please select from menu Help->Programming->Python to open the help doc.
https://www.originlab.com/doc/python/Run-Python-in-Origin

We are keeping improving the Python support based on users' feedback.

James
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 11/11/2022 :  12:08:17 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
We have sample codes on Github

https://github.com/originlab/Python-Samples

LT will continue to be improved so if something cannot be done in originpro Python, then call LT from it.

CP
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