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.

OPT4041DTSEVM: How to Acquire Data Using Python 3 – Missing mInstrument Files

Part Number: OPT4041DTSEVM


Tool/software:

Hello,

I am trying to acquire data using the OPT4041DTSQ1EVM ambient light sensor device. I would like to reuse the Python code provided with the Latte GUI, making slight adjustments to integrate it into my own working codebase.

I am currently using Python 3, and I've made necessary changes to account for the original code being written for Python 2. However, I’ve run into an issue: the mMSP5529Programmer.py script references mInstrument and mInstrumentController files, which are not included in the provided Latte code package.

My questions are:

Is there a way to obtain the mInstrument and mInstrumentController files so that I can use them directly?

Alternatively, would it be better to implement my own simple serial controller class using PySerial to replicate the functionality needed?

Any advice or guidance on how to proceed would be greatly appreciated. Thank you!