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.

OPT3101EVM: Capturing with SDK

Part Number: OPT3101EVM
Other Parts Discussed in Thread: OPT3101

Hi, I have the SDK built and running with the OPT3101EVM.  I'm attempting to capture data like the Latte GUI does and record it to a file.  I have a couple questions.

1) My phase measurements seem to jump around quite a bit, and don't really seem to follow the actual distance.  Is the configuration included with the SDK already configured for the EVM or are there changes I need to make?  Or maybe I should be calling something besides calibrationSession_firstTimeBringUp?

2) When capturing using the frameData.capture function I noticed that the frameCounter doesn't just increment sequentially.  I assume this means it's dropping frames because this interface is too slow?  To remedy this I added a function that sends the "CAPS" command on the control port, and reads from the data port.  This seems to almost fix the frameCounter issue.  Is this the preferred way to do this?

  • Hi Gunnerone,

    1) Did you run crosstalk calibration for the EVM? The EVMs are calibrated before we ship them out and the calibration is stored on the flash of the onboard MSP430. However, if you run first time bringup it will not load this calibration. I assume if you are using the SDK with the EVM however to calibrate it correct? And you probably swapped some components? If this is the case then you will want to run the calibration steps (at least xtalk and phase offset) and then you can get accurate phase data. We have a calibration doc for using the SDK that is not online yet. If you send me an email I can provide a draft version of this to you: bhandari at ti.com

    2) Are you running at full speed (4ksps)? We have found that the EVM will drop frames at full speed and usually 3ksps is the fastest it will go. This is not an issue with the OPT3101 but rather getting the data into the MSP430 and to the PC quickly enough.

    Best,

    Alex
  • 1) I see.  So I would either need to implement loading the calibration from the flash on the MSP430 (like the Latte GUI does), or run the calibration myself through the SDK?  We haven't changed any components, so maybe I'd be best off loading it from flash.  I sent you an email requesting the document.

    2) I think I'm running slower than 4ksps.  I should be running in Super-HDR mode:

      this->reg.num_sub_frames = 1; // //Sub frames count
      this->reg.num_avg_sub_frames = 1; // //Average frames count
      this->reg.en_adaptive_hdr = 1; // //Enables adaptive HDR feature

  • Hi,

    1) Correct. Wanted to check, what is the reason for using the SDK if you have not swapped components? Since the calibrations are already done you could just use straight with latte.
    2) Can you send the .csv data output from latte showing this dropping of frames?

    Best,

    Alex