Is it possible to read data of i2c device using the stream mode? | LabJack
 

Is it possible to read data of i2c device using the stream mode?

4 posts / 0 new
Last post
s1tnk
stanaka's picture
Is it possible to read data of i2c device using the stream mode?

I"m reading the data of temperature sensor LM75B by I2C. With reference to your HMC6352.py, this was a success.

Can I do this in stream mode?

LabJack Support
labjack support's picture
No. Serial operations are too

No. Serial operations are too slow to work with stream mode.

s1tnk
stanaka's picture
I see. Besides, the I2C

I see. Besides, the I2C command differs depending on the device.

Is it possible to adjust the streaming data rate appropriately and explicitly access the I2C device in the reading loop? It seems that there is no problem depending on the data rate if the I2C device is fast enough.

How is that?

LabJack Support
labjack support's picture
That does work. While the

That does work. While the device is streaming you can issue a command to run an I2C operation. The timing of the clock on I2C is flexible, so short interruptions from stream operations reduce the clock speed, but do not interfere with the transmission otherwise.