Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66688

I2C Run Script function called too slow

$
0
0

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_0-1712538193283.png

 


Viewing all articles
Browse latest Browse all 66688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>