It depends on what physical quantity is being measured. As far as the software is concerned, one way is to simulate the value of, for example, a specific error. The software error will be the difference of the obtained result from the set value.
I think you should use standard samples to regularly verify instrument accuracy. Alternatively, high-precision instruments can be used in parallel or series to calibrate the instrument under test.