Example Code

Successive Approximation Routine

Code and Documents

Attachment

Overview:

A Routine to find a value without having to ramp up to find the desired value.

 

Description:

This routine will quickly find a value that meets the requirements for a test condition, without ramping up through many values.

 

Hardware and Software Requirements

LabVIEW 2017 Full Development System 2017 or compatible.

 

Steps to Implement or Execute Code

Set values for Maximum Control Value, Minimum Control Value, Target, and Number of Passes.

Inside of the Loop, output Test Value, then read the result.  Connect the result to the lower input of the Compare icon.

 

Additional Information or References

The displays Iteration, Test Value, and Shifting Value are used for testing and debugging the routine.

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
c.abraham
Member
Member
on

hi, can some one get this vi saved for 2014 version?

Contributors