
UG000418 •v1-00 • 2019-Jan-11
The lower left corner of the ALS Tab contains a box titled Raw FIFO Log. Because of the operating
speed of the PC and polling rate of the GUI program, the GUI does not display every sample, since
the actual TCS3701 is operating faster than the GUI can display and log the data. This is not normally
an issue, since the operating environment is not rapidly changing. The Raw FIFO Log is a special
function that is designed to capture all of the ALS Data for Channels 0 and 1, without skipping any
data.
When this function is enabled, the TCS3701 will store channel 0 and 1 data into its internal FIFO.
When the GUI performs its normal data polling it will also extract all of the data in the FIFO and store it
in memory. You may then store this data to a special log file.
The Raw FIFO Log controls function as follows:
The Enable checkbox will activate the FIFO and collect the data into memory while polling.
The Count field displays the number of channel0/1 pairs that have been collected in memory.
The Save button will store the accumulated data from memory into a user-specified file. The data in
the log file is identified with a time stamp showing when the data was read from the FIFO and a zero-
based sequential index number for each time stamp (since there may be several data samples each
time the FIFO is emptied.
The FIFO can hold up to 64 channel 0/1 data pairs. If the index numbers for any time stamp increment
all the way to 63, then there has likely been FIFO overload which means that data has been lost. This
situation should only occur when the ATIME/ASTEP settings are very so small that the TCS3701 is
producing several data values per millisecond.
4.7.2 ALS Lux Coefficients
The TCS3701 supplies information that is used to calculate Lux (unit of illumination). The Lux equation
for the TCS3701 uses a combination of data from the sensor and various coefficients to calculate the
Lux value. The software is pre-configured with coefficients for an open-air configuration. When the
sensor is placed behind glass, different coefficients should be loaded into the software to update the
Lux equation. The coefficients can be loaded or saved to an XML file using the File menu. To ensure
the proper XML format first save the current coefficients using File > Lux Coefficients > Save. Once
the file is saved locate the XML file created and edit with a text editor such as notepad to change the
coefficients. Then go to File > Lux Coefficients > Load and select the XML file that was updated.
The software can also automatically load new coefficients upon starting the GUI. To do this save the
XML file as TCS3701_luxeq.xml in the system documents directory (%USERPROFILE%\Documents,
also known as My Documents). When GUI is started, you will see a dialog appear with the new
coefficients displayed.