Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

845x randomly returns error in the middle of the test

Solved!
Go to solution

I am using NI845x USB to I2C/SPI module. It works fine mostly but I get the error -301742 during the middle of the test while communicating over I2C and no way to recover that. If I start my application again I get the same error over and over. But strangely, if I wait 5 min or so and then try again, it works fine for another 30 min to 1 hour.

I did use this function to increase the timeout after reading the error.

 

ni845xI2cConfigurationSetAckPollTimeout(i2cHandle, 1000)

 

What am I missing?

Any help is appreciated.

0 Kudos
Message 1 of 3
(1,305 Views)
Solution
Accepted by topic author _TestMan_

What device are you trying to communicate with?  Do you have an I2C Mux involved?  Is the chip getting a brownout condition (increase in current causes the supply voltage to drop below an allowed threshold)?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(1,278 Views)

Thank you very much for your suggestion. That was it!

Yes, MUX was involved and brown out occurred because the current draw was right on the edge of the max limit of the power supply.

0 Kudos
Message 3 of 3
(1,208 Views)