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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 send range to python

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Phillip T. Posted - 06/08/2020 : 08:46:46 AM
Hello,

I am trying to get python and origin to talk to each other but when i try the syntax of the documentation it does not work.

I want to pass a range to python by:

range pas = MFC_T!MFCTt;
type -b "$(pas)";
Python.send(pas, b);

string py$ = "C:\Users\AG Over\Desktop\Python Projects\FIT IR Temp\Fit_IR_Temp.py";
run -pyf "%(py$)";

the python script is simply "print(b)" for now. the type command shows me that the range is correct but printout only gives the correct result if i set the range to "1!1" otherwise it will put out nothing or nonsense or the old range.

Thank you.
1   L A T E S T    R E P L I E S    (Newest First)
Chris D Posted - 06/08/2020 : 10:45:15 AM
Hi,

Can you ask this again in our Python forum?

Thanks,
Chris Drozdowski
Originlab Technical Support

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000