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
 Origin Forum
 Fetching data from RS-232 in real-time
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1205 Posts

Posted - 07/30/2020 :  08:29:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2020b (64-bit) 9.7.5.184
Windows 7 Pro x64 SP1

Greetings!

I was thinking to connect Origin to my lab analytic scale via RS-232 to fetch the weighting results in real-time.
What is the current approach to implementing this?

Thank you.


---
AK

Chris D

428 Posts

Posted - 07/30/2020 :  08:31:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
We have vi's for LabView.

Alternately, if there is a Python interface to the piece of equipment, you may use try to it from within 2021 Beta's Python support.




Thanks,
Chris Drozdowski
Originlab Technical Support
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 07/30/2020 :  10:09:08 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Chris D

We have vi's for LabView.

Alternately, if there is a Python interface to the piece of equipment, you may use try to it from within 2021 Beta's Python support.

Thanks,
Chris Drozdowski
Originlab Technical Support




Currently, I don't control the scale via LabView or Python.
Can I connect to the scale via RS-232 seen as COM 1 port?
This seems to be the simplest way to get the data in text format and then parse it to columns.



---
AK
Go to Top of Page

Chris D

428 Posts

Posted - 07/30/2020 :  11:04:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
We don't support connecting to COM ports either via LabTalk or Origin C and even if we did, you'd still need to write code to convert signal to data.

Hence my suggestion to look at Python for your solution.





Thanks,
Chris Drozdowski
Originlab Technical Support
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 07/30/2020 :  1:02:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Chris D

We don't support connecting to COM ports either via LabTalk or Origin C and even if we did, you'd still need to write code to convert signal to data.

Hence my suggestion to look at Python for your solution.

Thanks,
Chris Drozdowski
Originlab Technical Support




Do you mean to find an external Python library that is capable of connecting to COM ports?


---
AK
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 07/30/2020 :  2:08:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
We will update the blog we published in 2015 to show how in more current Python status.

We will show both from external Python and use Auto Import with CSV Connector, as well as using Python inside Origin.


CP
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 07/31/2020 :  06:22:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by cpyang

We will update the blog we published in 2015 to show how in more current Python status.

We will show both from external Python and use Auto Import with CSV Connector, as well as using Python inside Origin.

CP




OK.
I will be checking the blog on a regular basis.
Do you plan to implement directly COM port connectivity?


---
AK
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