Sharpcap with Solar Monitor.

Discussions on extending SharpCap using the built in Python scripting functionality
Post Reply
jimjaxer
Posts: 2
Joined: Mon Dec 09, 2019 1:36 pm

Sharpcap with Solar Monitor.

#1

Post by jimjaxer »

Hello, I'm new here, I lived in France. So apologize for my poor English ;)
I've just finished a Solar Seeing Monitor + VB.NET software for Solar Imaging.
This device send datas from serial port : 3 datas average, flux and seeing.
No problem to record with JSON file, VB, or internal log file (dat or csv).

I would like to know if it's possible to declare import serial in the IronPy scripting interface and manage some external data to customize my capture. In other words is it possible to read serial port with a py script in Sharpcap using serial module.

Thanks !
JJ
User avatar
admin
Site Admin
Posts: 13267
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Sharpcap with Solar Monitor.

#2

Post by admin »

Hi,

Yes, that should be possible – you will need to use the .Net framework classes to access the serial port rather than the native Python way of doing it. Have a look at this page which details someone else who succeeded in getting the serial ports to work using IronPython

http://python.6.x6.nabble.com/serial-po ... 79246.html

Hope this helps, Robin
jimjaxer
Posts: 2
Joined: Mon Dec 09, 2019 1:36 pm

Re: Sharpcap with Solar Monitor.

#3

Post by jimjaxer »

Thanks !
it perfectly works in IronPy, with an "ipy script.py" in cmd line under W10.
Now I've got to check it in SharpCap to split data as good as possible to launch capture with a criteria of good seeing .
Post Reply