SDAA378 August 2026 ADS125H18
The OWCS algorithm requires the user to write code that determines how to use the data received from the ADC. Figure 2-51 shows the USER TODO statements in the code
Figure 2-51 User Instructions to Process the OWCS ResultsFor example, certain industrial systems might shut down and reset to a known state after detecting an open wire. Other systems might simply log this information so that action can be taken at a later time. It is left to the user to decide how to proceed.
Figure 2-51 also shows how the ain_index variable increments up to the number of input steps set by the user once the processOWCSMeasurements() function completes. The ain_index variable resets once the algorithm indexes through all elements in the input_ain_cfg[] array as described in Section 2.4.1 and after Figure 2-37.