Lab 2 Tips: Inductance and Magnetic Circuits



Part a:

  1. The lab manual ask you to build two separate models. You can save some time by making one model that does the job of both.
    suggested model
  2. Remember to set the configuration parameters for every model you make. (Look back at lab one if you've forgot how.) However, xpcexplr only needs to be setup once per user for the semester unless you switch stations.
  3. Measure the applied voltage. It will be different from its model window value.
  4. see How To Measure A Signal
  5. Below is a 1-V zero to peak signal. Note that the amplitude is 1-V while the signal is 2-V peak to peak.
    Plot contrasting zero to peak with peak to peak values.
  6. see Shut Roll Mode Off
  7. see High Res Mode
  8. Find the x = 0" set screw position by energizing the solenoid with a dc constant (e.g. 12 V) and the set screw removed. Then gently turn the screw into the solenoid until it lightly contacts the plunger.
  9. You can change the frequency without stopping or rebuilding the model!
  10. When plotting in Matlab, use points for measured data, and lines for fitted data. For example:


  11. Use an m-file to do the math (calculate impedance and inductance) for you. Its easier for you that way, just don't forget to turn in your code.
  12. One complete (360 degree) turn of the set screw advances x by 1/32".

Parts b and c:

  1. Convert position from inches to meters before plotting Inductance or calculating Ll, K, or ko.
  2. Note the single quote after the definition of vector a in the sample code. It means transpose and converts a from a row to a column vector. The vectors x, L_meas, and a must all be columns to use the function solenoid.m
  3. solenoid.m is provided for you.
  4. After running solinoid.m, a will contain fitted values for Ll, K, and ko. Record them in your lab notebook with the correct units.

Check your work.


  1. For question 1, include a plot of |Z|ideal and |Z|measured on the same axis. Use Matlab and don't forget to submit your m-file for credit.
    Impedance vs Frequency, Measured and Ideal.
  2. For questions 2 through 6, use equations to support your answers.
  3. Question 6 has three parts. Be sure to answer each of them.

Any constructive feedback you can provide (comments, content suggestions, errors, etc.) to improve this website is appreciated. Submit Comments.