Software GUI Description
2017 Microchip Technology Inc.
DS50002673A-page 21
PAC1934 Data Sheet).This register is important if the SLOW pin is being used, the user will
be able to capture the data for very accurate energy calculation when switching from a pro-
grammed sample rate to the eight samples/second rate under control of the SLOW pin. If
the SLOW pin is not being used, these settings can be ignored.
FIGURE 3-5:
REFRESH COMMANDS DIALOG BOX
The
Start Acquisition
button, displayed in
Figure 3-1
(2), toggles into
Stop Acquisi-
tion
when clicked. When the button is clicked, a REFRESH command is sent to the
PAC1934 and it starts collecting conversion data in the accumulator. The GUI starts
sending REFRESH_V commands to the PAC1934 and reading results data from all of
the results registers for data plotting (and logging, if selected).
When clicked, the
Refresh
button, displayed in
Figure 3-1
(4), sends a command to the
PAC1934, updating the control registers and loading all the results from the ADCs and
the accumulator into the readable registers. The refresh command also resets the
accumulators and the accumulator count.
The
Log to File
button, displayed in
Figure 3-1
(5), toggles when clicked to stop the
logging to file process and turns data logging on and off. In order to log the data, the
user must be acquiring. The data file is a CSV file created in the directory where the
GUI has been installed. There is a link next to this button to open the last log. Stop
acquiring data before opening the log file. When the
Open Last Log
button is clicked,
the most recent data log is opened. It can be noticed that all of the results data is cap-
tured, and each column has a header identifying the data.
Figure 3-6
shows one corner
of a log file.
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from