Measure the relationship between the actual output voltage and Vsense. A plot below can be generated. Take two points in the linear region for gain measurement. 2. The gain can be calculated as follows. In addition, you could also calculate the gain error if the expected gain is known.