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.

AWR1243BOOST: Error in post proc when using hardware trigger

Part Number: AWR1243BOOST
Other Parts Discussed in Thread: AWR1243

Hi, I am using AWR1243BOOST and DCA1000 to capture data, but when I use hardware trigger, the output of post proc seems wrong:

My chirp configuration is :

ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 1, 0)

and the frame:

(ar1.FrameConfig(0, 0, 10, 64, 20, 0, 2).

Does anyone know why? THX!!

  • I am using hardware trigger and Lua script to capture data. The configurations are:
    ################
    if(partId == 1642) then
    if(ar1.ProfileConfig(0, 77, 7, 6.2, 58.76, 0, 0, 0, 0, 0, 0, 67.78, 0, 256, 5000, 0, 0, 30) == 0) then
    WriteToLog("ProfileConfig Success\n", "green")
    else
    WriteToLog("ProfileConfig failure\n", "red")
    end
    elseif((partId == 1243) or (partId == 1443)) then
    if(ar1.ProfileConfig(0, 77, 7, 6.2, 58.76, 0, 0, 0, 0, 0, 0, 67.78, 0, 256, 10000, 0, 0, 30) == 0) then
    WriteToLog("ProfileConfig Success\n", "green")
    else
    WriteToLog("ProfileConfig failure\n", "red")
    end
    end

    if (ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 1, 0) == 0) then
    WriteToLog("ChirpConfig Success\n", "green")
    else
    WriteToLog("ChirpConfig failure\n", "red")
    end

    ar1.DisableTestSource(0)

    if (ar1.FrameConfig(0, 0, 10, 64, 20, 0, 2) == 0) then
    WriteToLog("FrameConfig Success\n", "green")
    else
    WriteToLog("FrameConfig failure\n", "red")
    end
    -- RSTD.Sleep(1000)

    if (ar1.SelectCaptureDevice("DCA1000") == 0) then
    WriteToLog("SelectCaptureDevice Success\n", "green")
    else
    WriteToLog("SelectCaptureDevice failure\n", "red")
    end
    RSTD.Sleep(1000)

    if (ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "12:34:56:78:90:12", 4096, 4098) == 0) then
    WriteToLog("CaptureCardConfig_EthInit Success\n", "green")
    else
    WriteToLog("CaptureCardConfig_EthInit failure\n", "red")
    end
    -- RSTD.Sleep(1000)

    if (partId == 1642) then
    if (ar1.CaptureCardConfig_Mode(1, 2, 1, 2, 3, 0) == 0) then
    WriteToLog("CaptureCardConfig_Mode Success\n", "green")
    else
    WriteToLog("CaptureCardConfig_Mode failure\n", "red")
    end
    elseif ((partId == 1243) or (partId == 1443)) then
    if (ar1.CaptureCardConfig_Mode(1, 1, 1, 2, 3, 0) == 0) then
    WriteToLog("CaptureCardConfig_Mode Success\n", "green")
    else
    WriteToLog("CaptureCardConfig_Mode failure\n", "red")
    end
    end

    if (ar1.CaptureCardConfig_PacketDelay(25) == 0) then
    WriteToLog("CaptureCardConfig_PacketDelay Success\n", "green")
    else
    WriteToLog("CaptureCardConfig_PacketDelay failure\n", "red")
    end
    -- RSTD.Sleep(1000)

    ar1.CaptureCardConfig_StartRecord(adc_data_path, 1)
    ar1.StartFrame()
    RSTD.Sleep(10000)
    ###########
  • Yuji,

    It is not clear from your post what you mean when say that the output of post proc seems wrong. Do you use the same configuration and trigger in software? I have very little information from you to go off at this point. If you are using the LUA script that is provided in the mmWave Studio installation, the frames are triggered in software and not hardware. And based on the LUA code you included, you are using a software trigger and not a hardware trigger. I do not know the test environment that you are using or the profile that you used to build your chirps. I will simply need more information in order to provide any kind of meaningful and helpful response.

    Regards,
    Kyle
  • Hi Kyle, 

    Sorry about that. Let me start over:

    We are using the AWR1243 and DCA1000 to capture data using hardware trigger. We get perfectly logical results when just running the device using the buttons on the mmWave Studio 1.0.0.0 Gui, but when we run the script using our own LUA code, the results look very weird. I have attached photos of our post processing windows, output monitors, and the Lua code itself. 

    When setting up the board on the mmWave Studio Gui we are getting post processing that looks like this: 

     

     

    The configurations being used look like this:

    The output feed is here:

    GM: Constructor
    GM: Wed Aug 01 15:05:09 2018
    RSTD.Transmit("/Settings")
    [15:05:09]
    [15:05:09] ### Running Startup script: "C:\ti\mmwave_studio_01_00_00_00\mmWaveStudio\Scripts\Startup.lua" ###
    [15:05:09] RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
    [15:05:09] RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
    [15:05:09] Scripter ignored: Attempt to UnBuild() again or before Build.
    [15:05:09] RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Clients\\\\LabClient.dll")
    [15:05:09] RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
    [15:05:09] RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
    [15:05:09] RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
    [15:05:09] RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
    [15:05:09] RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
    [15:05:09] RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\RunTime\\SAL.dll")
    [15:05:09] RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
    [15:05:09] RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
    [15:05:09] RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
    [15:05:09] RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
    [15:05:09] RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
    [15:05:09] RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
    [15:05:09] RSTD.Transmit("/")
    [15:05:09] RSTD.SaveSettings(): Settings saved to "C:\Users\YUJI\AppData\Roaming\RSTD\config.xml"
    [15:05:09] RSTD.Build()
    [15:05:09] RSTD.SaveSettings(): Settings saved to "C:\Users\YUJI\AppData\Roaming\RSTD\config.xml"
    [15:05:09] RSTD.Transmit("/")
    [15:05:09] RSTD.AL_Build()
    [15:05:09] RSTD.AL_LoadXml()
    [15:05:09] RSTD.Transmit("/")
    [15:05:09] RSTD.AL_Init()
    [15:05:09] RSTD.Clients_Build()
    [15:05:09] GM: Init
    [15:05:09] GM: Loaded 'C:\ti\mmwave_studio_01_00_00_00\mmWaveStudio\Clients\\LabClient.dll'
    [15:05:09] GM: 1 Guest (s) init
    [15:05:09] GM: 1 Module(s) init
    [15:05:09] GM: 2 Tab (s) init
    [15:05:09] RSTD.Client_LoadXml()
    [15:05:09] [RadarAPI]: Starting Matlab Engine..
    [15:05:14] [RadarAPI]: Matlab Engine Started!
    [15:05:17] [RadarAPI]: ar1.LoadSettings('C:\Users\YUJI\AppData\Roaming\RSTD\ar1gui.ini')
    [15:05:17] TESTING = false
    [15:05:17]
    [15:05:17] ***Script completed successfully.***
    [15:05:19] [RadarAPI]: Opening Gpio Control Port()
    [15:05:19] [RadarAPI]: Status: Passed
    [15:05:20] [RadarAPI]: Opening Board Control Port()
    [15:05:20] [RadarAPI]: Status: Passed
    [15:05:21] [RadarAPI]: ar1.FullReset()
    [15:05:21] [RadarAPI]: Status: Passed
    [15:05:21] [RadarAPI]: Closing Board Control Port()
    [15:05:21] [RadarAPI]: Status: Passed
    [15:05:22] [RadarAPI]: Closing Gpio Control Port()
    [15:05:22] [RadarAPI]: Status: Passed
    [15:05:22] [RadarAPI]: ar1.SOPControl(2)
    [15:05:22] [RadarAPI]: Status: Passed
    [15:05:22] [RadarAPI]: ar1.Connect(5,921600,1000)
    [15:05:25] [RadarAPI]: Warning: Connected with baudrate 115200
    [15:05:26] [RadarAPI]: Warning: Disconnected existing BaudRate
    [15:05:26] [RadarAPI]: Warning: Trying to connect with baudrate 921600
    [15:05:27] [RadarAPI]: ar1.Calling_IsConnected()
    [15:05:28] [RadarAPI]: ar1.SelectChipVersion("XWR1243")
    [15:05:28] [RadarAPI]: Status: Passed
    [15:05:29] [RadarAPI]: ar1.SelectChipVersion("XWR1243")
    [15:05:29] [RadarAPI]: Status: Passed
    [15:05:30] [RadarAPI]: ar1.SaveSettings('C:\Users\YUJI\AppData\Roaming\RSTD\ar1gui.ini')
    [15:05:30] [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\radarss\\xwr12xx_xwr14xx_radarss_ES2.0.bin")
    [15:05:31] [RadarAPI]: Downloading BSS ROM Legacy Binary..
    [15:05:37] [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\masterss\\xwr12xx_xwr14xx_masterss_ES2.0.bin")
    [15:05:37] [RadarAPI]: Downloading MSS Legacy Binary..
    [15:05:42] [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
    [15:05:42] [RadarAPI]: Status: Passed
    [15:05:42] MSS power up done async event received!
    [15:05:42] [RadarAPI]: ar1.SaveSettings('C:\Users\YUJI\AppData\Roaming\RSTD\ar1gui.ini')
    [15:05:44] [RadarAPI]: ar1.RfEnable()
    [15:05:44] BSS power up done async event received!
    [15:05:44] [RadarAPI]: Status: Passed
    [15:05:48] [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 2, 0)
    [15:05:48] [RadarAPI]: Status: Passed
    [15:05:48] [RadarAPI]: ar1.LPModConfig(0, 0)
    [15:05:48] [RadarAPI]: Status: Passed
    [15:05:49] [RadarAPI]: ar1.RfInit()
    [15:05:49] RF Init async event received!
    [15:05:49] [RadarAPI]: Status: Passed
    [15:05:49] [RadarAPI]: Time stamp, Temperture: 5040,42; APLL Status, Update: 1, 0; SynthVCO1 Status, Update: 1, 1; SynthVCO2 Status, Update: 1, 1; LODist Status, Update: 1, 1; RxADCDC Status, Update: 1, 1; HPFcutoff Status, Update: 1, 1; LPFcutoff Status, Update: 1, 1; PeakDetector Status, Update: 1, 1; TxPower Status, Update: 1, 1; RxGain Status, Update: 1, 1; RxIQMM Status, Update: 1, 1;
    [15:05:51] [RadarAPI]: ar1.DataPathConfig(513, 1216644097, 0)
    [15:05:51] [RadarAPI]: Status: Passed
    [15:05:52] [RadarAPI]: ar1.LvdsClkConfig(1, 1)
    [15:05:52] [RadarAPI]: Status: Passed
    [15:05:52] [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 1, 1, 1, 0, 0)
    [15:05:52] [RadarAPI]: Status: Passed
    [15:05:55] [RadarAPI]: ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 0, 30)
    [15:05:55] [RadarAPI]: Status: Passed
    [15:05:56] [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
    [15:05:56] [RadarAPI]: Status: Passed
    [15:06:08] [RadarAPI]: ar1.DisableTestSource(0)
    [15:06:08] [RadarAPI]: Status: Passed
    [15:06:08] [RadarAPI]: ar1.FrameConfig(0, 0, 10, 64, 20, 0, 2)
    [15:06:08] [RadarAPI]: Status: Passed
    [15:06:26] [RadarAPI]: ar1.DisableTestSource(0)
    [15:06:26] [RadarAPI]: Status: Passed
    [15:06:26] [RadarAPI]: ar1.FrameConfig(0, 0, 10, 64, 20, 0, 2)
    [15:06:26] [RadarAPI]: Status: Passed
    [15:06:28] [RadarAPI]: ar1.SelectCaptureDevice("DCA1000")
    [15:06:28] [RadarAPI]: passed
    [15:06:30] [RadarAPI]: StatusDCCard Event Registered
    [15:06:30] [RadarAPI]: Status: Passed
    [15:06:30] [RadarAPI]: ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "12:34:56:78:90:12", 4096, 4098)
    [15:06:31] [RadarAPI]: SYSTEM_CONNECT_CMD_CODE Async event recieved(9)
    [15:06:31] [RadarAPI]: ConnectRFDCCard Status: Passed
    [15:06:31] [RadarAPI]: ReadRFDCCarFpgaVersion Status: Passed
    [15:06:31] [RadarAPI]: READ_FPGA_VERSION_CMD_CODE event recieved(14)
    [15:06:31] [RadarAPI]: ar1.CaptureCardConfig_Mode(1, 1, 1, 2, 3, 0)
    [15:06:31] [RadarAPI]: Status: Passed
    [15:06:31] [RadarAPI]: CONFIG_FPGA_GEN_CMD_CODE Async event recieved(3)
    [15:06:31] [RadarAPI]: ar1.CaptureCardConfig_PacketDelay(25)
    [15:06:31] [RadarAPI]: Status: Passed
    [15:06:31] [RadarAPI]: CONFIG_PACKET_DATA_CMD_CODE Async event recieved(11)
    [15:06:36] [RadarAPI]: ar1.CaptureCardConfig_StartRecord("C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\PostProc\\adc_data.bin", 1)
    [15:06:36] [RadarAPI]: Status: Passed
    [15:06:36] [RadarAPI]: RECORD_START_CMD_CODE Async event recieved(5)
    [15:06:39] [RadarAPI]: ar1.StartFrame()
    [15:06:39] [RadarAPI]: Status: Passed
    [15:06:39] Frame start async event received!
    [15:06:39] [RadarAPI]: Frame Ended
    [15:06:41] Frame End async event received!
    [15:06:43] [RadarAPI]: STS_RECORD_COMPLETED Async event recieved(8)
    [15:06:43] [RadarAPI]: ar1.CaptureCardConfig_StopRecord()
    [15:06:43] [RadarAPI]: Status: Passed
    [15:06:43] [RadarAPI]: RECORD_STOP_CMD_CODE Async event recieved(6)
    [15:06:47] [RadarAPI]: Packet Reorder Utility Started...please wait...
    [15:06:47] [RadarAPI]: ar1.PacketReorderZeroFill("C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\PostProc\\adc_data_Raw_0.bin", "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\PostProc\\adc_data.bin", "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\PostProc\\pktlogfile.txt")
    [15:06:52] [RadarAPI]: Packet Reorder Utility process completed!
    [15:06:57] Reordering required : NO
    [15:06:57] Packet loss : NO
    [15:06:57] Number of packets received : 1801
    [15:06:57] Number of zero filled packets : 0
    [15:06:57] Number of zero filled bytes : 0
    [15:06:57] [RadarAPI]: ar1.StartMatlabPostProc("C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\PostProc\\adc_data.bin")

     

     

    When I use a Lua script that should do the exact same thing, the captured data under post processing looks like this:

    As you can see, the post processed data "looks like garbage" even though the device was not moved. 

    Here is the Lua Code being used

    info = debug.getinfo(1,'S');
    file_path = (info.source);
    file_path = string.gsub(file_path, "@","");
    file_path = string.gsub(file_path, "Chengzhe_ConfigSetUp_HardwareTrigger.lua", ""); -- THE LUA SCRIPT FILE'S NAME!
    fw_path   = file_path.."..\\..\\rf_eval_firmware"
    bitopfile = file_path.."\\".."bitoperations.lua"
    dofile(bitopfile)
    data_path     = file_path.."..\\PostProc"
    adc_data_path = data_path.."\\adc_data.bin"
    Raw_data_path = data_path.."\\adc_data_Raw_0.bin"
    pkt_log_path  = data_path.."\\pktlogfile.txt"
    -- SaveSettingsPath = "C:\\Users\\YUJI\\AppData\\Roaming\\RSTD\\ar1gui.ini" -- CHANGE THE DIR ACCORDING TO THE PC
    if(ar1.FullReset() == 0) then
        WriteToLog("Successfully Reset\n", "green")
    else
        WriteToLog("Failed to Reset\n", "red")
    end
    if(ar1.SOPControl(2) == 0) then
        WriteToLog("Successfully Set SOP Mode\n", "green")
    else
        WriteToLog("Error: Failed to Set SOP Mode\n", "red")
    end
    if(ar1.Connect(5,921600,1000) == 0) then
        WriteToLog("Board Connected\n", "green")
    else
        WriteToLog("Failed to Conect Board\n", "red")
    end
    ar1.Calling_IsConnected()
    if(ar1.SelectChipVersion("XWR1243") == 0) then
        WriteToLog("Chip XWR1243 Selected\n", "green")
    else
        WriteToLog("Can't Find Chip XWR1243\n", "red")
    end
    --ar1.SaveSettings(SaveSettingsPath)
    res, efuserow9 = ar1.ReadRegister(0xffffe210, 0, 31)
    if (bit_and(efuserow9, 3) == 0) then
        partId = 1243
    elseif (bit_and(efuserow9, 3) == 1) then
        partId = 1443
    else
        partId = 1642
    end
    res, ESVersion = ar1.ReadRegister(0xFFFFE218, 0, 31)
    ESVersion = bit_and(ESVersion, 15)
    if((partId == 1642) and (ESVersion == 1)) then
        BSS_FW    = fw_path.."\\radarss\\xwr16xx_radarss_rprc_ES1.0.bin"
        MSS_FW    = fw_path.."\\masterss\\xwr16xx_masterss_rprc_ES1.0.bin"
    elseif((partId == 1642) and (ESVersion == 2)) then
        BSS_FW    = fw_path.."\\radarss\\xwr16xx_radarss_rprc_ES2.0.bin"
        MSS_FW    = fw_path.."\\masterss\\xwr16xx_masterss_rprc_ES2.0.bin"
    elseif((partId == 1243) and (ESVersion == 2)) then
        BSS_FW    = fw_path.."\\radarss\\xwr12xx_xwr14xx_radarss_ES2.0.bin"
        MSS_FW    = fw_path.."\\masterss\\xwr12xx_xwr14xx_masterss_ES2.0.bin"
    elseif((partId == 1243) and (ESVersion == 3)) then
        BSS_FW    = fw_path.."\\radarss\\xwr12xx_xwr14xx_radarss_ES3.0.bin"
        MSS_FW    = fw_path.."\\masterss\\xwr12xx_xwr14xx_masterss_ES3.0.bin"
    elseif((partId == 1443) and (ESVersion == 2)) then
        BSS_FW    = fw_path.."\\radarss\\xwr12xx_xwr14xx_radarss_ES2.0.bin"
        MSS_FW    = fw_path.."\\masterss\\xwr12xx_xwr14xx_masterss_ES2.0.bin"
    elseif((partId == 1443) and (ESVersion == 3))then
        BSS_FW    = fw_path.."\\radarss\\xwr12xx_xwr14xx_radarss_ES3.0.bin"
        MSS_FW    = fw_path.."\\masterss\\xwr12xx_xwr14xx_masterss_ES3.0.bin"
    else
        WriteToLog("Inavlid Device partId FW\n" ..partId)
        WriteToLog("Inavlid Device ESVersion\n" ..ESVersion)
    end
    if (ar1.DownloadBSSFw(BSS_FW) == 0) then
        WriteToLog("BSS FW Download Success\n", "green")
    else
        WriteToLog("BSS FW Download failure\n", "red")
    end
    RSTD.Sleep(2000)
    if (ar1.DownloadMSSFw(MSS_FW) == 0) then
        WriteToLog("MSS FW Download Success\n", "green")
    else
        WriteToLog("MSS FW Download failure\n", "red")
    end
    RSTD.Sleep(2000)
    if (ar1.PowerOn(1, 1000, 0, 0) == 0) then
        WriteToLog("Power On Success\n", "green")
    else
       WriteToLog("Power On failure\n", "red")
    end
    RSTD.Sleep(1000)
    --ar1.SaveSettings(SaveSettingsPath)
    if (ar1.RfEnable() == 0) then
        WriteToLog("RF Enable Success\n", "green")
    else
        WriteToLog("RF Enable failure\n", "red")
    end
    RSTD.Sleep(1000)
    if (ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 2, 0) == 0) then
        WriteToLog("ChanNAdcConfig Success\n", "green")
    else
        WriteToLog("ChanNAdcConfig failure\n", "red")
    end
    -- RSTD.Sleep(1000)
    if (partId == 1642) then
        if (ar1.LPModConfig(0, 1) == 0) then
            WriteToLog("LPModConfig Success\n", "green")
        else
            WriteToLog("LPModConfig failure\n", "red")
        end
    else
        if (ar1.LPModConfig(0, 0) == 0) then
            WriteToLog("Regualar mode Cfg Success\n", "green")
        else
            WriteToLog("Regualar mode Cfg failure\n", "red")
        end
    end
    -- RSTD.Sleep(2000)
    if (ar1.RfInit() == 0) then
        WriteToLog("RfInit Success\n", "green")
    else
        WriteToLog("RfInit failure\n", "red")
    end
    RSTD.Sleep(1000)
    if (ar1.DataPathConfig(513,1216644097,0) == 0) then
        WriteToLog("DataPathConfig Success\n", "green")
    else
        WriteToLog("DataPathConfig failure\n", "red")
    end
    -- RSTD.Sleep(1000)
    if (ar1.LvdsClkConfig(1, 1) == 0) then
        WriteToLog("LvdsClkConfig Success\n", "green")
    else
        WriteToLog("LvdsClkConfig failure\n", "red")
    end
    -- RSTD.Sleep(1000)
    if(partId == 1642) then
        if (ar1.LVDSLaneConfig(0, 1, 1, 1, 1, 1, 0, 0) == 0) then
            WriteToLog("LVDSLaneConfig Success\n", "green")
        else
            WriteToLog("LVDSLaneConfig failure\n", "red")
        end
    elseif ((partId == 1243) or (partId == 1443)) then
        if (ar1.LVDSLaneConfig(0, 1, 1, 1, 1, 1, 0, 0) == 0) then
            WriteToLog("LVDSLaneConfig Success\n", "green")
        else
            WriteToLog("LVDSLaneConfig failure\n", "red")
        end
    end
    -- RSTD.Sleep(1000)
    if(partId == 1642) then
        if(ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 0, 30) == 0) then
            WriteToLog("ProfileConfig Success\n", "green")
        else
            WriteToLog("ProfileConfig failure\n", "red")
        end
    elseif((partId == 1243) or (partId == 1443)) then
        if(ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 0, 30) == 0) then
            WriteToLog("ProfileConfig Success\n", "green")
        else
            WriteToLog("ProfileConfig failure\n", "red")
        end
    end
    if (ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 1, 0) == 0) then
        WriteToLog("ChirpConfig Success\n", "green")
    else
        WriteToLog("ChirpConfig failure\n", "red")
    end
    --if (ar1.ChirpConfig(32, 63, 0, 0, 0, 0, 0, 0, 0, 0) == 0) then
    --    WriteToLog("ChirpConfig Success\n", "green")
    --else
    --    WriteToLog("ChirpConfig failure\n", "red")
    --end
    -- RSTD.Sleep(1000)
    ar1.DisableTestSource(0)
    if (ar1.FrameConfig(0, 0, 8, 64, 20, 0, 2) == 0) then --id of first chirp, last chirp id, number of frames, # sub frames per frame, periodicity
        WriteToLog("FrameConfig Success\n", "green")
    else
        WriteToLog("FrameConfig failure\n", "red")
    end
    -- RSTD.Sleep(1000)
    if (ar1.SelectCaptureDevice("DCA1000") == 0) then
        WriteToLog("SelectCaptureDevice Success\n", "green")
    else
        WriteToLog("SelectCaptureDevice failure\n", "red")
    end
    RSTD.Sleep(1000)
    if (ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "12:34:56:78:90:12", 4096, 4098) == 0) then
        WriteToLog("CaptureCardConfig_EthInit Success\n", "green")
    else
        WriteToLog("CaptureCardConfig_EthInit failure\n", "red")
    end
    -- RSTD.Sleep(1000)
    if (partId == 1642) then
        if (ar1.CaptureCardConfig_Mode(1, 2, 1, 2, 3, 30) == 0) then
            WriteToLog("CaptureCardConfig_Mode Success\n", "green")
        else
            WriteToLog("CaptureCardConfig_Mode failure\n", "red")
        end
    elseif ((partId == 1243) or (partId == 1443)) then
        if (ar1.CaptureCardConfig_Mode(1, 1, 1, 2, 3, 0) == 0) then
           WriteToLog("CaptureCardConfig_Mode Success\n", "green")
        else
            WriteToLog("CaptureCardConfig_Mode failure\n", "red")
        end
    --if (partId == 1642) then
    --    if (ar1.CaptureCardConfig_Mode(1, 2, 1, 2, 3, 30) == 0) then
    --        WriteToLog("CaptureCardConfig_Mode Success\n", "green")
    --    else
    --        WriteToLog("CaptureCardConfig_Mode failure\n", "red")
    --    end
    --elseif ((partId == 1243) or (partId == 1443)) then
    --    if (ar1.CaptureCardConfig_Mode(1, 1, 1, 2, 3, 0) == 0) then
    --       WriteToLog("CaptureCardConfig_Mode Success\n", "green")
    --    else
    --        WriteToLog("CaptureCardConfig_Mode failure\n", "red")
    --    end
    end
    -- RSTD.Sleep(1000)
    if (ar1.CaptureCardConfig_PacketDelay(25) == 0) then
        WriteToLog("CaptureCardConfig_PacketDelay Success\n", "green")
    else
        WriteToLog("CaptureCardConfig_PacketDelay failure\n", "red")
    end
    -- RSTD.Sleep(1000)
    ar1.CaptureCardConfig_StartRecord(adc_data_path, 1)
    ar1.StartFrame()
    RSTD.Sleep(30000)
    Here is the output monitor result

    GM: Constructor
    GM: Wed Aug 01 15:13:12 2018
    RSTD.Transmit("/Settings")
    [15:13:13]
    [15:13:13] ### Running Startup script: "C:\ti\mmwave_studio_01_00_00_00\mmWaveStudio\Scripts\Startup.lua" ###
    [15:13:13] RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
    [15:13:13] RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
    [15:13:13] Scripter ignored: Attempt to UnBuild() again or before Build.
    [15:13:13] RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Clients\\\\LabClient.dll")
    [15:13:13] RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
    [15:13:13] RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
    [15:13:13] RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
    [15:13:13] RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
    [15:13:13] RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
    [15:13:13] RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\RunTime\\SAL.dll")
    [15:13:13] RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
    [15:13:13] RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
    [15:13:13] RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
    [15:13:13] RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
    [15:13:13] RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
    [15:13:13] RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
    [15:13:13] RSTD.Transmit("/")
    [15:13:13] RSTD.SaveSettings(): Settings saved to "C:\Users\YUJI\AppData\Roaming\RSTD\config.xml"
    [15:13:13] RSTD.Build()
    [15:13:13] RSTD.SaveSettings(): Settings saved to "C:\Users\YUJI\AppData\Roaming\RSTD\config.xml"
    [15:13:13] RSTD.Transmit("/")
    [15:13:13] RSTD.AL_Build()
    [15:13:13] RSTD.AL_LoadXml()
    [15:13:13] RSTD.Transmit("/")
    [15:13:13] RSTD.AL_Init()
    [15:13:13] RSTD.Clients_Build()
    [15:13:13] GM: Init
    [15:13:13] GM: Loaded 'C:\ti\mmwave_studio_01_00_00_00\mmWaveStudio\Clients\\LabClient.dll'
    [15:13:13] GM: 1 Guest (s) init
    [15:13:13] GM: 1 Module(s) init
    [15:13:13] GM: 2 Tab (s) init
    [15:13:13] RSTD.Client_LoadXml()
    [15:13:13] [RadarAPI]: Starting Matlab Engine..
    [15:13:17] [RadarAPI]: Matlab Engine Started!
    [15:13:20] [RadarAPI]: ar1.LoadSettings('C:\Users\YUJI\AppData\Roaming\RSTD\ar1gui.ini')
    [15:13:21] TESTING = false
    [15:13:21]
    [15:13:21] ***Script completed successfully.***
    [15:13:27] [RadarAPI]: Opening Board Control Port()
    [15:13:27] [RadarAPI]: Status: Passed
    [15:13:28] [RadarAPI]: ar1.FullReset()
    [15:13:28] [RadarAPI]: Status: Passed
    [15:13:29] [RadarAPI]: Closing Board Control Port()
    [15:13:29] [RadarAPI]: Status: Passed
    [15:13:29] Successfully Reset
    [15:13:29] [RadarAPI]: Opening Gpio Control Port()
    [15:13:29] [RadarAPI]: Status: Passed
    [15:13:30] [RadarAPI]: Opening Board Control Port()
    [15:13:30] [RadarAPI]: Status: Passed
    [15:13:31] [RadarAPI]: ar1.FullReset()
    [15:13:31] [RadarAPI]: Status: Passed
    [15:13:31] [RadarAPI]: Closing Board Control Port()
    [15:13:31] [RadarAPI]: Status: Passed
    [15:13:32] [RadarAPI]: Closing Gpio Control Port()
    [15:13:32] [RadarAPI]: Status: Passed
    [15:13:32] [RadarAPI]: ar1.SOPControl(2)
    [15:13:32] [RadarAPI]: Status: Passed
    [15:13:32] Successfully Set SOP Mode
    [15:13:32] [RadarAPI]: ar1.Connect(5,921600,1000)
    [15:13:34] [RadarAPI]: Warning: Connected with baudrate 115200
    [15:13:35] [RadarAPI]: Warning: Disconnected existing BaudRate
    [15:13:35] [RadarAPI]: Warning: Trying to connect with baudrate 921600
    [15:13:37] [RadarAPI]: ar1.Calling_IsConnected()
    [15:13:38] [RadarAPI]: ar1.SelectChipVersion("XWR1243")
    [15:13:38] [RadarAPI]: Status: Passed
    [15:13:39] [RadarAPI]: ar1.SelectChipVersion("XWR1243")
    [15:13:39] [RadarAPI]: Status: Passed
    [15:13:39] Board Connected
    [15:13:39] [RadarAPI]: ar1.Calling_IsConnected()
    [15:13:40] [RadarAPI]: ar1.SelectChipVersion("XWR1243")
    [15:13:40] [RadarAPI]: Status: Passed
    [15:13:41] [RadarAPI]: ar1.SelectChipVersion("XWR1243")
    [15:13:41] [RadarAPI]: Status: Passed
    [15:13:41] Chip XWR1243 Selected
    [15:13:41] [RadarAPI]: ar1.ReadRegister(0xffffe210, 0, 31)
    [15:13:41] [RadarAPI]: Value : 100000
    [15:13:41] [RadarAPI]: ar1.ReadRegister(0xffffe218, 0, 31)
    [15:13:41] [RadarAPI]: Value : 12
    [15:13:41] [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\radarss\\xwr12xx_xwr14xx_radarss_ES2.0.bin")
    [15:13:42] [RadarAPI]: Downloading BSS ROM Legacy Binary..
    [15:13:48] BSS FW Download Success
    [15:13:50] [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\masterss\\xwr12xx_xwr14xx_masterss_ES2.0.bin")
    [15:13:50] [RadarAPI]: Downloading MSS Legacy Binary..
    [15:13:54] MSS FW Download Success
    [15:13:56] [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
    [15:13:56] [RadarAPI]: Status: Passed
    [15:13:56] MSS power up done async event received!
    [15:13:56] [RadarAPI]: ar1.SaveSettings('C:\Users\YUJI\AppData\Roaming\RSTD\ar1gui.ini')
    [15:13:56] Power On Success
    [15:13:57] [RadarAPI]: ar1.RfEnable()
    [15:13:57] BSS power up done async event received!
    [15:13:57] [RadarAPI]: Status: Passed
    [15:13:58] RF Enable Success
    [15:14:00] [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 2, 0)
    [15:14:00] [RadarAPI]: Status: Passed
    [15:14:00] ChanNAdcConfig Success
    [15:14:00] [RadarAPI]: ar1.LPModConfig(0, 0)
    [15:14:00] [RadarAPI]: Status: Passed
    [15:14:00] Regualar mode Cfg Success
    [15:14:00] [RadarAPI]: ar1.RfInit()
    [15:14:00] RF Init async event received!
    [15:14:00] [RadarAPI]: Time stamp, Temperture: 2467,39; APLL Status, Update: 1, 0; SynthVCO1 Status, Update: 1, 1; SynthVCO2 Status, Update: 1, 1; LODist Status, Update: 1, 1; RxADCDC Status, Update: 1, 1; HPFcutoff Status, Update: 1, 1; LPFcutoff Status, Update: 1, 1; PeakDetector Status, Update: 1, 1; TxPower Status, Update: 1, 1; RxGain Status, Update: 1, 1; RxIQMM Status, Update: 1, 1;
    [15:14:00] [RadarAPI]: Status: Passed
    [15:14:00] RfInit Success
    [15:14:01] [RadarAPI]: ar1.DataPathConfig(513, 1216644097, 0)
    [15:14:01] [RadarAPI]: Status: Passed
    [15:14:01] DataPathConfig Success
    [15:14:01] [RadarAPI]: ar1.LvdsClkConfig(1, 1)
    [15:14:01] [RadarAPI]: Status: Passed
    [15:14:01] LvdsClkConfig Success
    [15:14:01] [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 1, 1, 1, 0, 0)
    [15:14:01] [RadarAPI]: Status: Passed
    [15:14:01] LVDSLaneConfig Success
    [15:14:01] [RadarAPI]: ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 0, 30)
    [15:14:01] [RadarAPI]: Status: Passed
    [15:14:01] ProfileConfig Success
    [15:14:01] [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 1, 0)
    [15:14:01] [RadarAPI]: Status: Passed
    [15:14:01] ChirpConfig Success
    [15:14:01] [RadarAPI]: ar1.EnableTestSource(0)
    [15:14:01] [RadarAPI]: Status: Passed
    [15:14:01] [RadarAPI]: ar1.EnableTestSource(1)
    [15:14:01] [RadarAPI]: Status: Passed
    [15:14:01] [RadarAPI]: ar1.FrameConfig(0, 0, 8, 64, 20, 0, 2)
    [15:14:01] [RadarAPI]: Status: Passed
    [15:14:01] FrameConfig Success
    [15:14:01] [RadarAPI]: ar1.SelectCaptureDevice("DCA1000")
    [15:14:01] [RadarAPI]: passed
    [15:14:01] SelectCaptureDevice Success
    [15:14:02] [RadarAPI]: StatusDCCard Event Registered
    [15:14:02] [RadarAPI]: Status: Passed
    [15:14:02] [RadarAPI]: ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "12:34:56:78:90:12", 4096, 4098)
    [15:14:02] [RadarAPI]: Status: Passed
    [15:14:02] [RadarAPI]: SYSTEM_CONNECT_CMD_CODE Async event recieved(9)
    [15:14:02] [RadarAPI]: ConnectRFDCCard Status: Passed
    [15:14:02] [RadarAPI]: Status: Passed
    [15:14:02] [RadarAPI]: READ_FPGA_VERSION_CMD_CODE event recieved(14)
    [15:14:02] [RadarAPI]: Status: Passed
    [15:14:02] CaptureCardConfig_EthInit Success
    [15:14:03] [RadarAPI]: ar1.ConfigureRFDCCardMode(1, 1, 1, 2, 3, 0)
    [15:14:03] [RadarAPI]: Status: Passed
    [15:14:03] [RadarAPI]: CONFIG_FPGA_GEN_CMD_CODE Async event recieved(3)
    [15:14:03] CaptureCardConfig_Mode Success
    [15:14:03] [RadarAPI]: ar1.CaptureCardConfig_PacketDelay(25)
    [15:14:03] [RadarAPI]: Status: Passed
    [15:14:03] [RadarAPI]: CONFIG_PACKET_DATA_CMD_CODE Async event recieved(11)
    [15:14:03] CaptureCardConfig_PacketDelay Success
    [15:14:03] [RadarAPI]: ar1.CaptureCardConfig_StartRecord("C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Scripts\\..\\PostProc\\adc_data.bin", 1)
    [15:14:03] [RadarAPI]: Status: Passed
    [15:14:03] [RadarAPI]: RECORD_START_CMD_CODE Async event recieved(5)
    [15:14:03] [RadarAPI]: STS_NO_LVDS_DATA Async event recieved(0)
    [15:14:03] [RadarAPI]: STS_NO_HEADER Async event recieved(1)
    [15:14:03] [RadarAPI]: ar1.StartFrame()
    [15:14:03] [RadarAPI]: Status: Passed
    [15:14:03] Frame start async event received!
    [15:14:03] [RadarAPI]: Frame Ended
    [15:14:07] Frame End async event received!
    [15:14:08] [RadarAPI]: STS_RECORD_COMPLETED Async event recieved(8)
    [15:14:08] [RadarAPI]: ar1.CaptureCardConfig_StopRecord()
    [15:14:09] [RadarAPI]: Status: Passed
    [15:14:09] [RadarAPI]: RECORD_STOP_CMD_CODE Async event recieved(6)
    [15:14:33]
    [15:14:33] ***Script completed successfully.***
    [15:14:39] [RadarAPI]: Packet Reorder Utility Started...please wait...
    [15:14:39] [RadarAPI]: ar1.PacketReorderZeroFill("C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Scripts\\..\\PostProc\\adc_data_Raw_0.bin", "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Scripts\\..\\PostProc\\adc_data.bin", "C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Scripts\\..\\PostProc\\pktlogfile.txt")
    [15:14:44] [RadarAPI]: Packet Reorder Utility process completed!
    [15:14:44] Reordering required : NO
    [15:14:44] Packet loss : NO
    [15:14:44] Number of packets received : 1441
    [15:14:44] Number of zero filled packets : 0
    [15:14:44] Number of zero filled bytes : 0
    [15:14:53] [RadarAPI]: ar1.StartMatlabPostProc("C:\\ti\\mmwave_studio_01_00_00_00\\mmWaveStudio\\Scripts\\..\\PostProc\\adc_data.bin")

     

  • Never mind problem was fixed