AMS TSL2540 EVM Скачать руководство пользователя страница 9

TSL2540 EVM User Guide 

 

 

Page 9 

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 

TSL2540_luxeq.xml

 in the system documents directory 

(

%USERPROFILE%\Documents

, also known as 

My Documents

). Then restart the GUI and see a 

dialog appear with the new coefficients displayed.     

If you are experiencing trouble loading new coefficients, this may indicate a problem with the file 
format. The XML file must contain all the required Lux equation elements to be loaded.  The format 
of the file follows the standard XML format and is as follows: 

<?xml version="1.0" encoding="utf-8"?> 
<!-- Device:TSL2540 Saved:9/22/2017 4:22:11 PM --> 

<luxeq> 
  <eq_values> 
    <coef name="DGF" value="58.514" /> 
    <coef name="CoefB" value="0.202" /> 
    <coef name="CoefC" value="0.893" /> 
    <coef name="CoefD" value="0.147" /> 
  </eq_values> 
</luxeq> 

4.7.3  ALS Output Data 

The top right corner of the ALS tab displays the output data. This data is continuously read. The 
polling interval is shown above the tab.  

 

Visible 

displays the data counts for the Visible channel 

 

IR 

displays the data counts for the IR channel 

 

Lux

 displays the calculated lux based upon the channel counts and lux coefficients  

4.7.4  ALS Data Plot 

The remaining portion of the ALS tab is used to display a running plot of the collected ALS values 
and calculated Lux. The last 350 values are collected and plotted on the graph. As additional values 
are added, the old values will be deleted from the left side of the graph. To start the plotting 
function, check the 

Enable Plot

 checkbox and select the 

Visible

IR

, or 

Lux

 checkbox.  

 

 

Содержание TSL2540 EVM

Страница 1: ...User guide TSL2540 EVM TSL2540 ALS Light to Digital Sensor Evaluation Kit Version 1 0 ...

Страница 2: ...s 3 2 Getting Started 3 3 Hardware Description 3 4 Software Description 4 4 1 Connect Software to Hardware 4 4 2 System Menus 5 4 3 System Level Controls 6 4 4 Auto Polling 7 4 5 Device ID Information 7 4 6 Log Status and Control Information 7 4 7 ALS Tab 8 5 Resources 10 ...

Страница 3: ...s loads the required driver for the USB interface and also the device s graphical user interface GUI The balance of this document identifies and describes the controls available on the GUI In combination with the TSL2540 datasheet the QSG and application notes available on the ams website www ams com there should be enough information to allow evaluation of the TSL2540 device 3 Hardware Descriptio...

Страница 4: ...he lux Figure 3 Software Main Window 4 1 Connect Software to Hardware On startup the software automatically connects to the hardware On successful initialization the software displays a main window containing controls pertinent to the connected device If the software detects an error an error window appears If Device not found or is unsupported appears verify the correct daughterboard is properly ...

Страница 5: ...ers are continually read while the program is running The Lux Coefficients menu allows the user to Display Load or Save the lux coefficients used to calculate lux See ALS Lux Coefficients section for more details Click on the Exit command to close the main window and terminate the application Any unsaved log data is cleared from memory The application can also be close by clicking the red X in the...

Страница 6: ...tion section but the file name may be changed if desired 4 2 3 Help Menu The Help menu contains a single function About Figure 6 Help Menu The About function displays a dialog box Figure 7 showing the version and copyright information for the application and library Click the OK button to close this window and continue Figure 7 About Widow 4 3 System Level Controls Immediately below the top menu b...

Страница 7: ...hese fields are changed the new values are stored with any new data logged The default log file name is based on these values at the time the log file is written If nothing is entered in these boxes they default to a period Sample default file name TSL2540_1 2 3_Log_HH_MM_SS csv From Application From User Input The Count value displayed is a count of the number of samples currently in the log buff...

Страница 8: ...es of WTIME and WLONG are ignored The WTIME control sets the time to wait between ALS cycles WTIME can be adjusted in 2 778ms steps The WLONG checkbox controls sets the WTIME factor When this box is checked the wait time between ALS cycles is extended by a factor of 12x 4 7 2 ALS Lux Coefficients The TSL2540 ALS supplies information that is used to calculate Lux unit of illumination The Lux equati...

Страница 9: ...ng utf 8 Device TSL2540 Saved 9 22 2017 4 22 11 PM luxeq eq_values coef name DGF value 58 514 coef name CoefB value 0 202 coef name CoefC value 0 893 coef name CoefD value 0 147 eq_values luxeq 4 7 3 ALS Output Data The top right corner of the ALS tab displays the output data This data is continuously read The polling interval is shown above the tab Visible displays the data counts for the Visible...

Страница 10: ...d but the actual plot will not be updated until the plot function is re enabled 5 Resources For additional information regarding the TSL2540 please refer to the datasheet For information regarding the installation of the TSL2540 EVM host application software please refer to the TSL2540 EVM Quick Start Guide Designer s Notebooks dealing with various aspects of optical measurement and optical measur...

Страница 11: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information ams TSL2540 EVM ...

Отзывы: