⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manual_performing_a_da_conversion.html

📁 Diamond公司Dscud通用驱动使用说明手册
💻 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 Conversion - 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 Conversion</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>
When you perform a D/A conversion, you are essentially taking a digital value and converting it to a voltage value that you send out to the specified analog output. This output code can be translated to an output voltage using one of the equations described in the hardware manual.
<p>
The Universal Driver function for performing a D/A conversion is <tt><a href="manual_DscDAConvert.html" class='printable' title ="DscDAConvert">dscDAConvert</a>()</tt>.<p><h3><a name="Step-By-Step_Instructions"> Step-By-Step Instructions</a></h3>
<p>
Call <tt><a href="manual_DscDAConvert.html" class='printable' title ="DscDAConvert">dscDAConvert</a>()</tt> and pass it <tt><a href="manual_BYTE.html" class='printable' title ="BYTE">BYTE</a></tt> and <tt><a href="manual_DSCDACODE.html" class='printable' title ="DSCDACODE">DSCDACODE</a></tt> values for the channel and output code - this will generate a D/A conversion on the selected channel that will output the new voltage that you set with the output code.
<p>
<strong>NOTE:</strong> Once you generate a D/A conversion on a specific output channel, that channel will continue to maintain the specified voltage until another conversion is done on the same channel or the board is reset or powered down.<p><h3><a name="Example_of_Usage_for_D/A_Conversion"> Example of Usage for D/A Conversion </a></h3>
<p>
<pre>...

DSCB dscb;&lt;br&gt;
BYTE channel;&lt;br&gt;
DSCDACODE output_code;

...

/* Step 1 */

channel = 0;&lt;br&gt;
output_code = 4095;&lt;br&gt;

if ((result = dscDAConvert(dscb, channel, output_code)) != DE_NONE)
    return result;

... </pre>
<p></div><p><em> <br> This page was last modified 00:50, 30 Jan 2004.<br>Copyright (c) 2004 Diamond Systems.  All Rights Reserved.</em><!-- Time since request: 0.15 secs. --></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -