LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb-8452 acting as a slave

Hello,

 

I am using an NI USB-8452 as a slave. I used an example from NI for an EEPROM reading and modified it to my design. I am sending a stream of an I2C address followed by 64 bytes. I see the 64th byte in my array for collecting the data in my vi but the first 63 seem to have disappeared. Attached are my vi and the screen shot of the data I should have seen and the probe showing only the last byte captured. Where did the other 63 bytes go?

Download All
0 Kudos
Message 1 of 2
(2,288 Views)

Hi there,

 

Did you mean to have your data buffer size set to 63? Is it possible you're getting overflow before your read goes off and losing data that way? Try adjusting the buffer size to make it larger and see if you still get the same results.

Miles G.
National Instruments
Staff Applications Engineering Specialist
0 Kudos
Message 2 of 2
(2,255 Views)