ECEN 3711 Introduction to LabVIEW Lab #11
Objectives:
To communicate with the Agilent DC power supply using
LabVIEW software and control it remotely.
Then to communicate with the Agilent Multimeter using
LabVIEW and read the output from the Mutimeter on to the software.
Procedure:
1.
Set up the circuit shown on the Cadet Trainer. Set
Va = 5V and connect Vb to a DC power supply and a Mutimeter to Vout.
2.
Connect the DC supply (Vb) and the Multimeter (Vout) to a computer with GPIB connectors.
3.
Now open a blank VI file from LabVIEW. Click on the windows menu and then show block diagram . On the Block diagram, Set up the Multimeter and the DC power supply
Communicating and Controlling functions from Function->Express->Input->Instrument
Drivers as shown on the next page block diagram window. (If the Driver is not included in the
Instrument Drivers, you can download it from NI web site via Help->Find Instrument
Drivers…)
4.
Include a millisecond wait timer in stacked sequence structure and set it on 1000 ms as shown on the Block diagram. Include simple error Handlers and Write Measurement Files. Set the directory for the Write Measurement file.
5.
Put the entire diagram in a For Loop. Connect the index to the divider which will divide the index with a constant to get DC voltage sweep up level. Set the Number of times to repeat the loop to get a Voltage sweep level of 0.05 and sweep Voltage from 0 to 6v.
6.
Now open the Front Panel window and give the GPIB address of the Agilent devices connected to your LabVIEW software.
7.
Run a DC sweep for your Vb from 0 to 6V using the loop function.
8.
Repeat step 7 just above with Va = 0V and store the measurement data on different files.
9.
Include your Block Diagram and measurement files in your Lab report.
P.Packiriswamy / P.Munro / F.Robba 15-Apr-20 11:46 AM page 1 of 3
Block Diagram (see steps #3 – 5 above)
P.Packiriswamy / P.Munro / F.Robba 15-Apr-20 11:46 AM page 2 of 3
ECEN 3711 Introduction to LabVIEW (continued) Lab #11
Objective:
To plot data from Agilent Multimeter and DC power supply onto an XY Graph using LabVIEW.
Procedure:
1.
Follow steps 1 to 6 of the previous work above to setup this part.
2.
Open the Front Panel of the VI you did in the previous work. Add XY graph on which you can plot the measurements.
3.
Open the Block diagram and put the XY Graph outside of the For Loop as shown below.
Connect the Vout from Multimeter and Vb from DC power supply to the X and Y Input of the
XY graph respectively via Array builder which stores the measurement data in the array form.
4.
Repeat steps 7 and 8 of the previous work above and Print out the Plots for each step.
5.
Compare your Measurements with Lab #3.
Bonus: Plot the Measurement data from stored files using Write to Measurement Block.
P.Packiriswamy / P.Munro / F.Robba 15-Apr-20 11:46 AM page 3 of 3