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.

DS90UB934-Q1:ALP useing

Part Number: DS90UB934-Q1
Other Parts Discussed in Thread: ALP

clear
Ds 90 UB 934 o shiyō shite arupu (analog launch paddo) no sōsa hōhō o kakunin-chūdesu. Meirei o kakikomi sōsa shitai nodesuga, scripting to iu bubun ni kakikomi [run] o sureba ī nodeshou ka? Yoku wakaranainode gozonjideareba oshietekudasai.
さらに表示
128 / 5,000

翻訳結果

翻訳の結果

I am currently checking how to operate ALP (analog launch PAD) using ds90UB934. I want to write and manipulate commands, but should I write [run] in the scripting part? I'm not sure, so if you know, please let me know.
  • Hello,

    Thank you for reaching out. There are two ways to read and write registers within the scripting tab. The first option is to send commands individually in the command window pictured. At the ">" mark you can use the formats "board.WriteI2C(Address, Register, Data)" and "board.ReadI2C(Address, Register)" to write and read registers for a specific device. Alternatively, if you have many commands you'd like to run, you can write a configuration script using the same board.WriteI2C( ) or board.ReadI2C( ) format and save it as a .txt or .py file. To run the file select the "Run" button in ALP and select the script you'd like to run. When the script is run in ALP each command saved in the file will be issued sequentially as if it was written in the command window. I've listed some examples below.

    • board.WriteI2C(0x7A, 0x15, 0x00)
      • This command will set register 0x15 to 0x0 for the device with an I2C address of 0x7A
    • board.ReadI2C(0x7A, 0x0)
      • This command will return the value of register 0x0 for the device with an I2C address of 0x7A