📄 manual_performing_a_da_conversion_scan.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 Scan - 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 Scan</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>
A D/A scan conversion is similar to a D/A conversion except that it performs several conversions on a multiple, specified output channels with each function call.
<p>
The Universal Driver function for performing a D/A conversion scan is <tt><a href="manual_DscDAConvertScan.html" class='printable' title ="DscDAConvertScan">dscDAConvertScan</a>()</tt>.<p><h3><a name="Step-By-Step_Instructions"> Step-By-Step Instructions </a></h3>
<p>
Create and initialize an array of D/A scan conversion settings structures (<a href="manual_DSCDACS.html" class='printable' title ="DSCDACS">DSCDACS</a>).
<p>
Call <tt><a href="manual_DscDAConvertScan.html" class='printable' title ="DscDAConvertScan">dscDAConvertScan</a>()</tt> and pass it a pointer to your scan structure array - this will generate a D/A conversion for each channel you set to enable.
<p>
<strong>NOTE:</strong> You must remember to initialize enough entries in your <tt>DSCDACS</tt> array to cover the number of conversions to be performed. If you do not, you will experience segmentation faults and invalid page faults.<p><h3><a name="Example_of_Usage_for_D/A_Conversion_Scan"> Example of Usage for D/A Conversion Scan </a></h3>
<p>
<pre>...
#define NUM_DA_CHANNELS 4
DSCB dscb;
DSCDACS dscdacs;
int i;
...
/* Step 1 */
dscdacs.output_codes = (DSCDACODE*)malloc(sizeof(DSCDACODE) * NUM_DA_CHANNELS);
for (i = 0; i < NUM_DA_CHANNELS; i++)
{
dscdacs.channel_enable[i] = TRUE;
dscdacs.output_codes[i] = 4095;
}
/* Step 2 */
if ((result = dscDAConvertScan(dscb, &dscdacs)) != DE_NONE)
return result;
...</pre>
<p></div><p><em> <br> This page was last modified 00:51, 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 + -