manual_dscadscanavg.html

来自「Diamond公司Dscud通用驱动使用说明手册」· HTML 代码 · 共 55 行

HTML
55
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"        "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>DscADScanAvg - 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'>DscADScanAvg</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'>Performs count A/D conversions on each channel in the selected channel range. The channels are sampled individually in rapid sequence. The channels are not sampled simultaneously.  The samples for each channel are averaged and returned.
The high channel number must be greater than or equal to the low channel number, and both values must be less than the total number of channels on the board. Setting high = low is the same as using <a href="manual_DscADSample.html" class='printable' title ="DscADSample">dscADSample</a>(). The function returns DE_OPERATION_TIMED_OUT if a timeout occurs because the A/D circuit is not ready (A/D Busy signal stays true). This usually indicates a hardware error.
<p>
<h2><a name="Function_Definition">Function Definition</a></h2>
<p>
BYTE dscADScanAvg(<a href="manual_DSCB.html" class='printable' title ="DSCB">DSCB</a> board, <a href="manual_Struct_DSCADSCAN.html" class='printable' title ="Struct DSCADSCAN">DSCADSCAN</a>* dscadscan, <a href="manual_DFLOAT.html" class='printable' title ="DFLOAT">DFLOAT</a>* sample_values, int count);<p><h2><a name="Function_Parameters">Function Parameters</a></h2>
<p>
<table border=1><tr ><TH>Name</TH><TH>Description</TH></tr><tr ><TD>board</TD><TD>The handle of the board to operate on</TD></tr><tr ><TD>dscadscan</TD><TD>The A/D scan settings to be used</TD></tr><tr ><TD>sample_values</TD><TD>Pointer to an array or allocate memory for holding the average scan values.</TD></tr><tr ><TD>count</TD><TD>The number of conversions to do for each channel when computing the average</TD></tr></table><p>
<h2><a name="Return_Value">Return Value</a></h2>
<p>
Error code or 0.
<p></div><p><em> <br> This page was last modified 18:22, 30 Jun 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 + =
减小字号Ctrl + -
显示快捷键?