Thanks very much for your information! It is very useful.
I have read the example of 4156A and I have another question here. How do you define the parameter type 'var1' in the example? In the measurement, you have to define whether you want to sweep current or voltage. But I am unable to find out how this definition is made in the example. Could anyone help? Thanks again!