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

📄 manual_dscaioint.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>DSCAIOINT - 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'>DSCAIOINT</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'>Structure containing interrupt-based analog I/O settings. These settings determine the behavior of the interrupt-based A/D sampling operation. Please refer to the A/D interrupt description beginning on page 28 for complete explanation of interrupt behavior resulting from the various settings in this structure.
<p>
<h2><a name="Structure_Definition">Structure Definition</a></h2>
<p>
typedef struct {
<p>
<pre>    DWORD num_conversions;
    FLOAT conversion_rate;
    BOOL cycle;
    BOOL internal_clock;
    BYTE low_channel;
    BYTE high_channel;
    BOOL external_gate_enable;
    BOOL internal_clock_gate;
    DSCSAMPLE* sample_values;
    BOOL fifo_enab;
    WORD fifo_depth;
    DWORD dump_threshold;
    BYTE clksource;
</pre>} DSCAIOINT;
<p>
<table border=1><tr ><TH>Name </TH><TH> Description</TH></tr><tr ><TD>num_conversions</TD><TD>In one-shot mode (cycle = 0), this is the maximum number of A/D or D/A conversions to perform. In recycle mode, this is the buffer size.</TD></tr><tr ><TD>conversion_rate</TD><TD>The desired rate at which single conversions (sample mode) or scans (scan mode) should occur. In most cases the input clock is 10MHz. This signal is divided by an integer value to obtain the desired sample rate. Because of the integer arithmetic, not all sample rates are obtainable. The driver will select the closest possible rate.</TD></tr><tr ><TD>cycle</TD><TD>If TRUE, the function will perform A/D or D/A conversions repeatedly. When the current number of transfers reaches the number set in num_conversions, The process will continue. The buffer pointer will be reset to the beginning of the buffer and new data will overwrite old data.		If FALSE, the function will take the number of samples specified by num_conversions and then terminate.
</TD></tr><tr ><TD>internal_clock</TD><TD>TRUE = use the board's internal clock to generate interrupts		FALSE = use the external clock (source pin depends on the board)
</TD></tr><tr ><TD>low_channel</TD><TD>The starting channel of the channel range on which to perform A/D or D/A conversions</TD></tr><tr ><TD>high_channel</TD><TD>The ending channel of the channel range on which to perform A/D conversions</TD></tr><tr ><TD>external_gate_enable</TD><TD>This parameter defines the control bit C2 on boards DMM, DMM-16, DMM-AT, and DMM-16-AT. It is used to enable an external signal on pin 29 (In0-) of the boards' I/O connector to provide a gating control for A/D sampling when an external clock is used to control the sample rate. If enabled, a high level on In0- will enable the sampling to run, and a low level will halt sampling. TRUE = use the external signal IN0- to gate the external sampling clock.  FALSE = No gating is enabled and sampling continues uninterrupted</TD></tr><tr ><TD>internal_clock_gate</TD><TD>This parameter defines the control bit C0 on boards DMM, DMM-16, DMM-AT, and DMM-16-AT. It is used to enable an external signal on pin 48 (Din0) of the boards' I/O connector to provide a gating control for A/D sampling when the internal clock is used to control the sample rate. If enabled, a high level on Din0 will enable the sampling to run, and a low level will halt sampling.  On the DMM-32-AT this will set GT12EN high.  In general: TRUE = Use an external signal to gate the internal sampling clock  FALSE = No gating is enabled and sampling continues uninterrupted</TD></tr><tr ><TD>sample_values</TD><TD>Pointer to a buffer holding either the results of the A/D conversions or the output codes to use in D/A conversions</TD></tr><tr ><TD>fifo_enab</TD><TD>If TRUE, will use the on-board FIFO in analog input operations. Used only on DMMAT, DMM16AT, and DMM32.</TD></tr><tr ><TD>fifo_depth</TD><TD>The number of A/D samples to store in the FIFO before generating an interrupt request</TD></tr><tr ><TD>dump_threshold</TD><TD>The number of A/D conversions to perform before copying the driver's sample buffer to the user-accessible buffer</TD></tr><tr ><TD>clksource</TD><TD>(Prometheus only) Selects the clock source for counter/timer 1 during D/A conversions. 1 = 10MHz, 0 = 100KHz.</TD></tr></table><p></div><p><em> <br> This page was last modified 00:01, 30 Jan 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 + -