<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — python module use]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=993&amp;type=atom" />
	<updated>2025-09-06T13:33:34Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=993</id>
		<entry>
			<title type="html"><![CDATA[Re: python module use]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4490#p4490" />
			<content type="html"><![CDATA[<p>Thanks for the help, it looks like the simple answer is Forget It.</p>]]></content>
			<author>
				<name><![CDATA[larryd]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3784</uri>
			</author>
			<updated>2025-09-06T13:33:34Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4490#p4490</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: python module use]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4489#p4489" />
			<content type="html"><![CDATA[<p>Of course you can interface Python and Fortran, but the process isn&#039;t trivial.&nbsp; In your case, it sounds like you&#039;d like to have a Fortran &quot;primary&quot; GUI program that is using the Python interface to the Rodeostat device.&nbsp; That situation might be tricky because, normally, people are working in the opposite direction (Python calling Fortran for speed reasons).&nbsp; </p><p>There appears to be a promising library <a href="https://github.com/nbren12/call_py_fort">call_py_fort</a> that allows calling Python routines from Fortran.&nbsp; It might be tricky here too, though, because you really want to hold a Python object, in your case a <a href="https://iorodeo.github.io/iorodeo-potentiostat-docs-build/getting_started.html#creating-a-device-object">Potentiostat</a> object, in your Fortran program to pass back and forth.&nbsp; The object would be opaque to Fortran, but Python would be able to understand it.&nbsp; </p><p>Another library that might work better is <a href="https://github.com/ylikx/forpy">ForPy</a> that seems to be a bit less numerical-calculation-specific.&nbsp; It appears to handle passing opaque objects back to Fortran.&nbsp; However, it looks a bit less maintained.&nbsp; </p><p>Neither solution is particularly pleasant because you&#039;re attempting to interact with Python&#039;s interpreter from a compiled program.&nbsp; Some reading suggests (and I might lean this way too) simply running Fortran&#039;s <strong>EXECUTE_COMMAND_LINE</strong> to call Python scripts to do what you want.&nbsp; It&#039;s another alternative that avoids the possible nightmare of trying to interact with the Python shared libraries directly, but it would require quite a bit of Python programming as well to provide a command-line interface to everything you want to do.</p><p>Sorry if this wasn&#039;t the solution you were hoping for, but interfacing disparate languages is rarely simple.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2025-09-05T14:01:23Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4489#p4489</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: python module use]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4488#p4488" />
			<content type="html"><![CDATA[<p>We have an inexpensive potentiostat that comes with a Python module software interface for control and data acquisition. I want to write an overall experiment control and data processing program with a GUI interface. I am much happier working in Simply Fortran than in Python - I could detail why if you&#039;d like.&nbsp; My hope is that I can somehow &quot;import&quot; the Python module into a Fortran program - sending instructions and collecting data.&nbsp; &nbsp; Reference:&nbsp; The Rodeostat potentiostat manufactured by Iorodeo.<br />Thanks</p>]]></content>
			<author>
				<name><![CDATA[larryd]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3784</uri>
			</author>
			<updated>2025-09-05T11:58:58Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4488#p4488</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: python module use]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4487#p4487" />
			<content type="html"><![CDATA[<p>It depends on what you mean by &quot;using some Python modules.&quot;&nbsp; Are you asking about integrating Fortran with Python?</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2025-09-05T11:29:01Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4487#p4487</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[python module use]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4486#p4486" />
			<content type="html"><![CDATA[<p>Is there any information or help on using some Python modules in Simply Fortran? Is it even possible?</p>]]></content>
			<author>
				<name><![CDATA[larryd]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3784</uri>
			</author>
			<updated>2025-09-04T17:05:48Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4486#p4486</id>
		</entry>
</feed>
