To view the metrology parameter values
from the GUI, perform the following steps:
- Select whether to use the RS-485 or RS-232 connection for
communication to the PC GUI. This selection is done by moving right or to the
PCB edge for the RS-485 communication option, and moving the S2 switch left for
the RS-232 communication option.
- Connect the reference design to a PC:
- RS-232 option: Connect the reference design to a PC using an
RS-232 cable. If the PC does not have an RS-232 adapter, use a serial
RS-232 adapter. The RS-232 adapter creates a COM port on the PC when the
adapter is plugged in.
- RS-485 option: A USB to RS-485 adapter can be used to
communicate between the PC GUI and the RS-485 port on this design. The
USB to RS-485 adapter creates a COM port on the PC when the adapter is
plugged in. The other end of the adapter has wires for the RS-485 Data A
and Data B connections as well as a GND connection and a 5-V power
connection, which are all connected to the J12 screw terminal block of
the design according to the connection labels next to the terminal block
pins. For testing this circuit, the following USB to RS-485 adapter is
specifically used: http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_USB_RS485_CABLES.pdf.
For this specific adapter, the Data A connection is orange, the Data B
connection wire is yellow, the GND connection is black, and the 5-V
power connection is red.
- Open the GUI folder and open
calibration-config.xml in a text editor.
- Change the port name field
within the meter tag to the COM port connected to the system. As Figure 4-4 shows, this
field is changed to COM7.
- Run the calibrator.exe file,
which is located in the GUI folder. If the COM port in the
calibration-config.xml was changed in the previous step to the COM
port connected to the reference design, the GUI opens (see Figure 4-5). If the GUI
connects to the design properly, the top-left button is green. If there are
problems with connections or if the code is not configured correctly, the button
is red. Click the green button to view the results.
Upon clicking on the green button, the
results window opens (see Figure 4-6). In the figure,
there is a trailing "L" or "C" on the Power factor values to indicate an
inductive or capacitive load, respectively.
From the results window, view the
total-energy consumption readings by clicking the Meter Consumption button.
After the user clicks this button, the Meter events and consumption window
pops up, as Figure 4-7
shows.
From the results window, the user can
also view the meter settings by clicking the Meter features button, view the
system calibration factors by clicking the Meter calibration factors button,
or open the window used for calibrating the system by clicking the Manual
cal. button.