OneCompiler

demo

139

Example heading with h2 size

Example heading with h3 size

Following is sample java code.

def can_read(row):
    try:
        global path
        signal_name = readFromExcel(row, 5)
        value = readFromExcel(row, 6)
        if signal_name == "Low_beam":
            path = modelPath.canReadSLML + "/" + signal_name + "Sts_L"
            # return path, value
            print(path)
        elif signal_name == "High_beam":
            path = modelPath.canReadSLML + "/" + signal_name + "Sts_L"
            # return path, value
            print(path)
    except Exception as e:
        print("An error occurred in can_read:", e)
        

can_read(18)



C:\Users\AK001027556\Downloads\python_engine1\python_engine\WPy64-31150\python-3.11.5.amd64\python.exe C:\Users\AK001027556\Desktop\python_excel_script\Automation\Updated\run2.py 
Traceback (most recent call last):
  File "C:\Users\AK001027556\Desktop\python_excel_script\Automation\Updated\run2.py", line 3, in <module>
    ans1,ans2 = common_defination.can_read(18)
    ^^^^^^^^^
TypeError: cannot unpack non-iterable NoneType object