This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DS280BR810: Control of ReDriver device via Python command shell or script

Part Number: DS280BR810

Hello,

I'm using the part above and like to control the device register using python shell. In SigCon Architect, using the Script menu option,
I get an error message like below. I have Python 2.7 actually installed, but directly in C:\ path as C:\Python27]..

To workaround this I followed the SigCon Architect Help document (via Help), and in a Python command shell I did those
python commands. It seems the first one -> GUI_Module=__import__('SigCon Architect') works fine,
but then the next one fails with the following failure signature. (Note: I copied the SigCon Architect.py as well as SigCon Architect.exe files
to the location, where I executed python.)

>>> GUI_Module.Device_GUI("SigCon Architect.exe")
Script completed sucessfully
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "SigCon Architect.py", line 13, in __init__
self.DeviceGUI=cdll.LoadLibrary(dll_path)
File "C:\Python27\lib\ctypes\__init__.py", line 440, in LoadLibrary
return self._dlltype(name)
File "C:\Python27\lib\ctypes\__init__.py", line 362, in __init__
self._handle = _dlopen(self._name, mode
WindowsError: [Error 126] The specified module could not be found

Any idea what the issue could be? Does Python need to be installed in C:\ProgramFiles (x86)\..etc ?

Thanks in advance and best regards,

Karsten Stangel


  • Hi Karsten,

    This aspect of the software is not often used and can be quite difficult to get working.  The Sigcon Architect tool window does not seem to find the installation - I would try to move the installation to the ProgramFiles directory.


    Regards,

    Lee

  • Thanks Lee. Yeah, I tried to create a Python2.6 folder in Program Files folder to make SCA believe it would be there, but it did not work.
    I'm hesitant to reinstall the Python SW somewhere else, since it contains all kind of packages inside the Python2.6 folder, 
    which do not belong to the core Python2.6 SW, so it would be a bit of a hazzle. I think for now I'm all set and do that manually for now.

    Thanks anyways for replying and best regards,

    Karsten

  • The setup on my computer uses Python 2.7.2 installed in the directory C:\Python27

    I do not think revision 2.6 will work.

    In order to make the scripting work for my computer I need to make sure I name the script with a ".py" filetype, for example "test.py"

    Regards,

    Lee