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.

INA260EVM: INA260EVM: USB Communication Interface with Matlab?

Part Number: INA260EVM
Other Parts Discussed in Thread: INA260

Already we have a I2C to USB adapter for INA260EVM, now I would like to integrate this EVM to Matlab with USB comm. Can you explain me in detail on the steps of doing this with Matlab? 

  • Hello Sumukha,

    Thanks for exploring your engineering options with TI. I think the first thing you have to do is confirm you can generate correct I2C commands from your adaptor using MATLAB. I assume this adaptor connects to your computer via USB and connects to the IN260 via I2C similarly to the R286 Acroname as an example.

    Usually these adaptors come with documentation on what serial commands are needed at the input in order to generate specific I2C commands at the output. So I would first ensure that you can estable a serial communication with your adaptor by creating specific reading and writing functions that you confirm work individually. Consider referring to this website: www.mathworks.com/.../getting-started-with-serial-i-o.html

    Once you can interact with the adaptor and have it generate all necessary commands, then try communicating with INA260.

    Best regards,
    Peter Iliya
    Current Sensing Applications
  • Hey Sumukha,

    If you are using the SM-USB_DIG hardware here is some documentation on the internal DLL and how to load and call these function into MATLAB.

    8802.Tio32DllDoc.pdf

    Let me know if any of this helps.

    Sincerely,

    Peter Iliya

  • Hi Peter, Thanks for the response. The adaptor which i'm using from I2C on INA260EVM to USB Comp is SM-USB-DIG which has TMP006EVM controller board. With the TI ready-made UI I'm able to read current values. Now that i've to integrate this platform with Matlab, so that we can use it for our application. As you know TI GUI, is only for evaluation purpose of this board. Finally the INA260 board has to be integrated with our software thro' Matlab only for our application.

  • Thanks Peter, Thanks for all these documents. I'll go through these documents this week and get back to you by early next week on integrating SM-USB-DIG to Matlab.
  • Hi Peter,

    Loading Tio32.dll to matlab which has the following functions (DLL interface is defined in the header files tio32_Api.h and tio32_defs.h)

    • tio32_Open: Which creates an instance for communication with USB DAC board and opens communication with the board. It also monitors if board is connected or disconnected to or from the PC.

    • tio32_RunMnemoDev or tio32_RunMnemoAdr: Interpretation and execution of mnemonic commands on the USB DAC board.

    • tio32_Close: To end the work with the USB DAC board.

    But i'm unable to find tio32_Api.h and tio32_defs.h header files in the DLL file locations, I've attached screen shot with this message.

    For loading DLL; matlab is throwing error that it cannot find the header files.

  • Hi Peter,

    As i said in my previous conversations, i'm unable to trace the header files, hence not able to load Tio32.dll for USB comm interface with matlab. Is there a way to integrate the INA260EVM UI with Matlab directly? Have you worked on this platform for any of your applications? Kindly share details if you have any such examples.

  • Hey Sumukha,

    I also do not see tio32_Api.h and tio32_defs.h header files in the EVM data folder. According to the 8802.Tio32DllDoc.pdf I attached earlier, these header files can be found in the Test_Tio32D11 project, but I am not sure that this is actually available. According, to these posts the the SM-DIG uses an HID driver and thus I am not sure the header files are necessary anymore.

    e2e.ti.com/.../422148
    e2e.ti.com/.../1444752

    You may have to create your own header file. I will try looking into this some more.

    Best,
    Peter Iliya
    Current Sensing Applications
  • Hey Peter,

    As explained in this link  

    I tried compiling and running usb.c on turbo c by invoking the headers, again there are errors in this c code.

      

  • Hey Sumukha,

    Unfotunately, this is outside the scope of our help in this forum. The original software driver was developed several years ago by another team and we no longer have the driver source files. You can refere to the post below for some guidance.
    e2e.ti.com/.../669880

    Sincerely,
    Peter Iliya

  • I was unable to resolve this issue of firmware integration of INA260EVM