Purpose of this program is to control two measurement instruments through GPIB using Python.
Inst_A: controlled with CPython and PyVISA (Not yet available in IronPython).
Inst_B: controlled through DLL library provided by manufacturer; IronPython and its __import clr__
I have tried Python .NET but returns with file not found exception, whereas the same commands work in IronPython. Could it be related to this?
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import clr
>>> clr.AddReference('QDInstrument')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
System.IO.FileNotFoundException: Unable to find assembly 'QDInstrument'.
at Python.Runtime.CLRModule.AddReference(String name)
Currently, inst_b.py will run under IronPython and will repeatedly execute new Python instances along with several arguments into inst_a.py in a loop.
Is there a way to keep inst_a.py alive over the whole acquisition instead and be able to receive input data from inst_b.py? In a sense like a listener?
OS version: Windows 7 Professional SP1 amd64
Python version: 3.5.1
Python .NET version: 2.1.0 (From pip)
Thank you,
Paul.