Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 8451: Is the timeout controllable when doing a I2CREAD I2CWRITE?

Solved!
Go to solution

Sorry if this isn't in the correct board.

 

I am using the NI USB-8451 to do I2C communication to talk to multiple devices.  I would like to put some functionality into my program to build up a list of devices that are connected on the bus.  It will attempt to communicate all 112 available addresses.  I tried testing this out by connecting the  USB-8451 to no device and communicating to address 10. It took about 5 seconds for the USB-8451 to timeout.  So it would take a lengthy amount of time to do this to all 112 address.  So my questions are:

 

Is there a way to shorten the length of the timeout?

Is there a better way of doing this?

 

0 Kudos
Message 1 of 6
(8,000 Views)

Hi,

 

Unfortunately, this functionality is not currently available with our I2C driver.  I have already put in a product suggestion for this.  If you would also like to do this, I would encourage you to visit our Product Suggestion Center.  I'm sorry that this isn't possible, but I can assure you that all product suggestions are seriously considered.  Have a great day!

 

Regards,

 

Todd V. 

National Instruments
Applications Engineer
NI Prototyping Community
0 Kudos
Message 2 of 6
(7,980 Views)
Solution
Accepted by topic author ShortCircuitPain

Hello,

 

Although the timeout value is not adjustable, I was able to query all 112 address using the script API pretty rapidly.  Here is the VI I used.  Let me know if it helps.

 

Have a great day!

Message Edited by O_Proulx on 11-05-2008 01:12 PM
O. Proulx
National Instruments
www.ni.com/support
Download All
Message 3 of 6
(7,903 Views)

Hi,

 

I have attached another VI that should help you.  Please let me know how this VI works for you.  Have a great day!

 

Regards,

 

Todd V. 

National Instruments
Applications Engineer
NI Prototyping Community
Message 4 of 6
(7,898 Views)

Hi,

 

I apologize for the duplicate post.  The VI I attached is the same one that was previously attached.  I worked together with the Applications Engineer that posted the VI, and we both posted it.  I apologize again.

 

Thanks,

 

Todd V. 

National Instruments
Applications Engineer
NI Prototyping Community
0 Kudos
Message 5 of 6
(7,893 Views)
Thank you for your suggestions!  I'll try them out.
0 Kudos
Message 6 of 6
(7,888 Views)