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.

DRV10983 GUI how to change i2c address when using the python script

Other Parts Discussed in Thread: DRV10983, USB2ANY, IPG-UI

Hi,


I am using the DRV10983 and a 4-k EEPROM to save some information. Both are connected to the I2C. Programming the DRV10983 using python scripting works fine. However, I would like to program the EEPROM with the same script as well. For this I would have to change the I2C address in the GUI.wirte_register() function. Saddly as far as I know the parameter that is passed to the function is a string for example "DRV10983" rather than a hex-value. How can I pass a different address to the function so I can program the 4k-EEPROM as well?

Marc

  • Hi Marc,

    Our experts have been notified and should reply soon.
  • Hi Marc,

    The Python scripting feature is available for registers defined in the register map only. All the python write and read operations are internally going through the register map. If the address passed in the python function is not available in the GUI register map then the GUI will not able to write that value to the device. 

    My recommendation is to use target board and modify code to program EEPROM www.ti.com/.../drv10983evm-tb

    Are you using any controller in your system ? 

    Regards,

    Krushal 

  • Hi Krushal,


    I do not have a controller on the PCB. My goal is to program the DRV10983 via USB2ANY without any additional microcontroller board because that makes the whole process more complicated and I have to write additional software. I mean the functionality I need is already given by the DRV10983 GUI somehow it just needs to be released. The only thing I have is the DRV10983 and an external EEPROM. How can I modify the python function in a way that I can pass a random I2C address and a random register (can I modify the python function at all)?

    Marc

  • Hi Marc,

    I dont think it is feasible to modify python script. One of the other option is to use USB2ANY explorer GUI and manually change address for each register and device connected. Please download USB2ANY explorer from following location http://www.ti.com/tool/ipg-ui

    If you are looking for some kind of automation, then you can use USBANY.dll in Labview and automated the process of writing registers. Please let me know if you want to go Labview path, We might be able to provide you some examples

    Regards,

    Krushal 

  • Hi Krushal,

    I already tried out the first one of your suggestion. The ipg-ui does not support third party decvices like EEPROMs. Nevertheless, I also tried out the USB2ANY Explorer 2.7.0.0. As you can imagine writing manually byte after byte in an exteranl EEPROM is not really productive but error prone. The thing is that I am looking for something I can put into production (that would be the second of your suggestion). Therefore, it has to be very simple more or less a double click an the rest of it runs in the background. However, we do neither have a Labview development environment nor a LabView licence. We develop application in csharp. Is there a driver package for csharp with examples available? I was not able to find one on your webpage.


    Regards

    Marc

  • Hi Marc,

    We don't have drivers in C#, but you can use USB2ANY.dll file in C# and create your own application

    Regards,
    Krushal
  • Hi Krushal,

    1. Where can I download the dll?
    2. Where can I get the documentation of the dll, basically the API?

    Regards,
    Marc