Hi,
I'm trying to use the NI USB-8452 to communicate with a I2C slave device. I define a script to read 32 registers value from the slave device and I have to multiple times of this. I'm doing this by called the I2C Run script function in a while loop. The problem of doing that is that the run script function actually took 2ms to run while my script of only taking 6ms. I can't afford to lose data during that 2ms time, it there anyway I could shorten this 2ms call script time?
The green is the script execution time and the red is the time spent in the while loop just call the script.
![mew012_1-1712538269808.png mew012_1-1712538269808.png](https://forums.ni.com/t5/image/serverpage/image-id/331027i3D4E01BCCF156ABD/image-size/medium?v=v2&px=400)
![mew012_0-1712538193283.png mew012_0-1712538193283.png](https://forums.ni.com/t5/image/serverpage/image-id/331026i6554A6988170D882/image-size/medium?v=v2&px=400)