Other Parts Discussed in Thread: ALP, USB2ANY
Hi,
I’m trying to create {video pattern} using DS90UB953-Q1. I can use [Analog LaunchPAD] and change the registers values using python code similar to the following:
#Patgen RGB888 1920x1080p30 Fixed 8 Colorbar
import DS90UB953_ENG_Lib.py
UB953 = 0x18 #953 SER Alias ID, check 0x5C on 954 for confirmation
WriteI2C(UB953,0xB0,0x00) # Indirect Pattern Gen Registers
WriteI2C(UB953,0xB1,0x01) # PGEN_CTL
WriteI2C(UB953,0xB2,0x01)
WriteI2C(UB953,0xB1,0x02) # PGEN_CFG
WriteI2C(UB953,0xB2,0x33)
…..
But I need to automate this, i.e. write my own code to do the same functions (changing register values) using C++ (or Python )
After installing [Analog LaunchPAD] , I found examples in : [C:\Program Files (x86)\Texas Instruments\Analog LaunchPAD v1.57.0010\Examples] . The examples show that the definition of [WriteI2C] function is available in the device profile file [DS90UB953_ENG.py] file and that file require to import the following modules:
import os
import sys
import NanoALP
from array import array
from ALPExtensionModule import ALPExtensionModule
but the problem is the python code for [NanoALP] not available , instead,I have the library file [NanoALP.lib] and when I run my pattern generation python script , I got the following error:
import NanoALP
ImportError: Module use of python24.dll conflicts with this version of Python.
I’m using Python 2.5.4. And I need more information about [NanoALP] , how to use it ,with which python version? Is there DLL we need to install? Any working example? Can we use C++ instead of python?
Thank you for your help
Aziz