80 likes | 234 Views
Module 5 – Serial devices using VISA. An application to measure capacitance. Serial interfaces. RS232 HPIB GPIB VISA USB. The Agilent (nee HP) 43310A. Frequency domain: A low-pass RC filter. Time domain ( à la Module 4). Apply a square wave, measure response, charge or discharge
E N D
Module 5 – Serial devices using VISA An application to measure capacitance Physics 434 Module 5
Serial interfaces • RS232 • HPIB GPIB • VISA • USB Physics 434 Module 5
The Agilent (nee HP) 43310A Physics 434 Module 5
Frequency domain:A low-pass RC filter . Physics 434 Module 5
Time domain (à la Module 4) • Apply a square wave, measure response, charge or discharge • May not seen serial device; at least use Agilent to measure resistor Physics 434 Module 5
Main points (see the doc) • Understand the Agilent or Textronix • Build the RC circuit (you might want to use the signal generator and scope to get a quick understanding). • Two options (or your own ideas) • Frequency domain: Get and use the SweptSineGenerator (in the Module5 llb). Generate the sweep. • Time domain: use the Vi from Module 4 to create a long pulse • Analysis either inline, or write out the data to fitGenerate a final vi to calculate the frequency. Physics 434 Module 5
Fitting withLevenberg-Marquartd.vi • This VI has a nice interface to specify a model. It is a cluster of 3 items: the formula, an array of parameters to fit, (a,f) and the independent variable (x). • Package it into a subVI, inputs X, Y, “Initial Guess”, output “Best Fit” and “Best Fit Coefficients” (really parameters). Make a LED light up if there is an error. The graph comparing data with best fit can be generated here • (But note that this is already done: there is a fit_bode.vi you can use) Physics 434 Module 5
The final project • We will be coming around to discuss this. See the list of suggestions on the web site • Can be individual or joint: • if joint, the individual contributions need to be specified (specific sub-vis, for example.) It will still be a joint grade. • Make a proposal, perhaps by e-mail. I want to have a title and a short description. Physics 434 Module 5