Virtual Lab 4 - Handling and Displaying Data
Virtual Lab 4 - Handling and Displaying Data
Purpose:
• Front Panel User Interfaces
• File I/O with HP VEE
• Porting to MATLAB
• Completion of the improved Bode plot generator
• Optimizing HP VEE for speed
Equipment:
• HP 34401A Multimeter
• HP 54601A Oscilloscope with HP 54657A Measurement/Storage Module
• HP 8116A Pulse/Function Generator or HP 33120A Function/Arb Generator
• HP 6236B Triple-output Power Supply
• Connectix Video Camera
• Intel 100MHz Pentium computer, 32MB Ram with HPIB Card
• HP VEE for Windows software, Version 3.2
• Timbuktu (remote access) software
• QuickPICT software
• Text: Robert Helsel, “Graphical Programming: A Tutorial for HP VEE”, Prentice Hall, 1995
• HP VEE executable files
Introduction:
In this lab, we will be completing an improved Bode plot measurement program using the
functions you created in Lab 3. The new program will have data saving features and an
easy to use control panel for finishing touches.
File I/O:
The I/O→To→File object may be used to save data in a variety of formats. Inputs to
the object (i.e., your data) can be saved to the file, and any string may be added to sign or
timestamp the file. On initialization of To File, the option exists to place the write pointer
at the beginning or end of the file. Therefore, data may be placed in a new file or appended
to an old file. The file to be saved or modified may be set by clicking on the filename
button. However, a more sophisticated way is to use an object that prompts the user with
the standard Windows file dialog (Data→Dialog Box→File Name
Selection). Upon completion of your program, HPVEE closes any files it was using
automatically.
Any array of data may be read into MATLAB using the Load function. The syntax,
load xxxxxxxx.yyy
Procedure: