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.

AFE7950EVM: Using the Python scripts provided with Latte outside the GUI

Part Number: AFE7950EVM

Dear all,

I try to use the Python scripts provided with Latte outside the Latte GUI. To my understanding Latte (in script mode) is just a GUI underneath which a Python interpreter is executing the selected Python script. As a starting point I took one of the setup.py scripts. The problems already arise with the import statements at the beginning of the script. Example:

from mDummySignalSource import DummySignalSource
from HSCProgrammer import QPort
from USBCaptureTrig import USBCaptureTrig
from USBHSCProgrammer import USBQPort
from basicPlots import BasicPlot
from logPlots import Log

I can't find any of the file or folder names referenced here (from ...) in the Latte installation. Is my installation incomplete or are these Python functions somehow hidden in some Windows DLL?

  • Hi Thorsten,

    What are you trying to do that you need to use the scripts outside of Latte?

    You can also control the Latte GUI from python using a socket interface. Information about how to do this and a python example are included in the zip folder below:

    Interfacing_Python.zip

    If you are also just trying to control the AFE, we also provide a C++ based API which is in the secure folder under “CAFE79xx_V2p5”. This can be used to program and control the AFE.

    Best,

    Camilo