AWR1642BOOST: Regarding Extracting starting and end time of data collection in microseconds

Part Number: AWR1642BOOST

Tool/software:

Dear TI Engineers,

I am currently working on projects that require precise synchronization of data collection, with start and end times measured in microseconds or milliseconds.

The EVM sends, and transmits chirps in microseconds, but mmWave Studio displays the time in seconds. I attempted to convert this time from seconds to microseconds/milliseconds, but the precision is insufficient. Could you please advise on how to accurately extract the start and end times of data collection in microseconds?

Thank you for your assistance.

Best regards,

Deepu

  • Hello,

    Can you please clarify which time you are referring to? Can you share a screen shot?

    What exactly are you trying to synchronize?

    Regards,

    Adrian

  • Hello,

    I need to extract time(captured) in microseconds or milliseconds in UNIX time format. Currently the device show the capture time in seconds(see pic)  

     Best,

    Deepu

  • Hello,

    I think the only way to do this is to use the os.clock() API in mmWave Studio, which will give you the time in seconds down to a thousandth of a second. You could do something like below in a LUA script:

    -- open csv file to write timestamps
    filename = "filepath\\timestamp.csv"
    fh1 = io.open(filename, "a")
    fh1:write("startTimeStamp, endTimeStamp".."\n")
    
    -- capture data with timestamps
    startTimeStamp = os.clock()
    start_capture()
    endTimeStamp = os.clock()
    fh1:write(startTimeStamp..","..endTimeStamp .."\n")
    
    -- close file
    fh1:close()

    Regards,

    Adrian

  • Hi Aozer, 

    Could you provide a detailed instructions on accessing file location, lua script name, specific line please?

    I used to write before but script original time of data collection was delayed to 61 seconds to 200 seconds. 

    Regards

    Deepu

  • Hello,

    We have example scripts in the below directory which you can modify.

    C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts

    Regards,

    Adrian