📄 manual_performing_a_da_autocalibration.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>Performing a DA Autocalibration - Universal Driver Documentation</title><meta http-equiv="Content-type" content="text/html; charset=iso-8859-1"><meta name="robots" content="index,follow"><link rel="shortcut icon" href="/favicon.ico"><link rel="stylesheet" href="/dscud/style/wikiprintable.css"><script type="text/javascript" src="/dscud/style/wikibits.js"></script><style type='text/css'><!--a.new, #quickbar a.new { color: #CC2200; }#quickbar { position: absolute; top: 4px; left: 4px; border-right: 1px solid gray; }#article { margin-left: 152px; margin-right: 4px; }//--></style></head><body bgcolor='#FFFFFF'><div class='titlebox'><h1 class='pagetitle'>Performing a DA Autocalibration</h1><span class='subtitle'>Universal Driver Documentation</span></div><div class='navbox'><a href="manual_Main_Page.html" class='printable' title ="Main Page">Main Page</a> || <a href="manual_Table_of_Contents.html" class='printable' title ="Table of Contents">Table_of_Contents</a> || <a href="http://www.diamondsystems.com/">Diamond Systems Website</a></div></div><div class='bodytext'><h3><a name="Description"> Description </a></h3>
<p>
On supported boards (-AT boards), the user may auto-calibrate the board's D/A circuit in software, rather than undergoing a tedious process of manual calibration.
<p>
Autocalibration is used for two purposes:
<ul><li> Calibrate the fixed D/A ranges, such as 0-5V or 0-10V
</li><li> Calibrate the programmable range, e.g. 0-1V or 0-4.096V
</li></ul><p>
Autocalibration utilizes an autodetect feature to determine the jumper configuration of the D/A circuit, and then calibrates the circuit for the detected range.
<p>
<strong>NOTE:</strong> Performing a D/A autocalibration causes significant fluctuations in the D/A outputs. The fluctuations will either be from mid-scale to full-scale or from zero-scale to full-scale, depending on the board and the range. Be sure these fluctuations will not have adverse effects on any devices connected to the board before performing D/A autocalibration. Otherwise, disconnect the devices from the D/A outputs before performing D/A autocalibration.
<p>
<h3><a name="Step-By-Step_Instructions"> Step-By-Step Instructions </a></h3>
<p>
Create and initialize a D/A auto-calibration settings structure (<a href="manual_DSCDACALPARAMS.html" class='printable' title ="DSCDACALPARAMS">DSCDACALPARAMS</a>).
<p>
Call <tt><a href="manual_DscDAAutoCal.html" class='printable' title ="DscDAAutoCal">dscDAAutoCal</a>()</tt> and pass it a pointer to this structure in order to calibrate the D/A circuit on the board.
<p>
<strong>NOTE:</strong> Performing a D/A auto-calibration takes about 2-5 seconds depending on the board and the mode.<p><h3><a name="Example_of_Usage_for_D/A_Autocalibration"> Example of Usage for D/A Autocalibration </a></h3>
<p>
<pre>...
DSCB dscb;
DSCDACALPARAMS dscdacalparams;
BYTE result;
...
/* Step 1 - set the programmable D/A range to 4.096V
(jumpers on board are set for programmable range) */
dscdacalparams.da_range = 4.096;
/* Step 2 */
if ((result = dscDAAutoCal(dscb, &dscdacalparams)) != DE_NONE)
return result;
...</pre>
<p></div><p><em> <br> This page was last modified 14:53, 12 Feb 2004.<br>Copyright (c) 2004 Diamond Systems. All Rights Reserved.</em><!-- Time since request: 0.16 secs. --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -