Part Number: IWR1642BOOST
Other Parts Discussed in Thread: IWR1642
Tool/software: Code Composer Studio
Hi,
Working people counting in IWR1642, for parsing have choosen 68xx_2D_Legacy_People_Counting. So when i run the Gui_Main.py file it doesnt connect with the COM ports..
And also in oob_parser.py, have included the main program which is suggested from TI team.
from oob_parser import uartParserSDK
#initialize parser
parser = uartParserSDK(type='(Legacy) 2D People Counting')
parser.frameTime = 50 #50 ms frame time
print('Parser type: ',self.configType.currentText())
try:
uart = "COM"+str(4) #deb_gp
data = "COM"+str(3) #deb_gp
self.parser.connectComPorts(uart, data)
except:
print('Com port connection failed')
#open config file
fname = 'example.cfg'
cfg_file = open(fname, 'r')
cfg = cfg_file.readlines()
parser.sendCfg(cfg)
while(1):
print(parser.readAndParseUart())
If i run this file it is showing the following errors..
= RESTART: C:\ti\mmwave_industrial_toolbox_4_1_0\labs\people_counting\68xx_3D_people_counting\gui\oob_parser.py
Traceback (most recent call last):
File "C:\ti\mmwave_industrial_toolbox_4_1_0\labs\people_counting\68xx_3D_people_counting\gui\oob_parser.py", line 652, in <module>
from oob_parser import uartParserSDK
File "C:\ti\mmwave_industrial_toolbox_4_1_0\labs\people_counting\68xx_3D_people_counting\gui\oob_parser.py", line 657, in <module>
print('Parser type: ',self.configType.currentText())
NameError: name 'self' is not defined
Please help me to resolve this issue..