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

📄 manual_instructions_for_vxworks.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>Instructions for VxWorks - 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'>Instructions for VxWorks</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'><a name="top"></a><p><table border="0" id="toc"><tr><td align="center"><b>Table of contents</b> <script type='text/javascript'>showTocToggle("show","hide")</script></td></tr><tr id='tocinside'><td align="left"><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#What_is_VxWorks?">1 What is VxWorks?</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Supported_VxWorks_Versions">2 Supported VxWorks Versions</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Installing_the_Driver_on_your_Development_System">3 Installing the Driver on your Development System</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Compiling_With_the_Driver">4 Compiling With the Driver</A><BR></div><div style="margin-left:2em;"><A CLASS="internal" HREF="#Step_1:_Create_Your_Project">4.1 Step 1: Create Your Project</A><BR><A CLASS="internal" HREF="#Step_2:_Import_Your_Code">4.2 Step 2: Import Your Code</A><BR><A CLASS="internal" HREF="#Step_3:_Configure_Build_Options">4.3 Step 3: Configure Build Options</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Important_Notes_on_DSCUD_for_VxWorks">5 Important Notes on DSCUD for VxWorks</A><BR></div></td></tr></table><P><h2><a name="What_is_VxWorks?">What is VxWorks?</a></h2>
<p>
VxWorks is a real-time embedded operating system from WindRiver.  It is one of the original general purpose embedded operating systems and offers excellent deterministic real-time performance.  The Tornado development environment provided by WindRiver for development VxWorks applications includes development tools and system analysis tools with many useful features not found in any other embedded toolset.
<p>
DSCUD for VxWorks is implemented as a static C library which customers link with their own programs before downloading the completed application to the target system.
<p>
<h2><a name="Supported_VxWorks_Versions">Supported VxWorks Versions</a></h2>
<p>
VxWorks 5.5 and Tornado 2.2 for Windows were used for development and testing of this driver.  Support for other versions of VxWorks and Tornado may be available on request. Contact support@diamondsystems.com to inquire.<p><h2><a name="Installing_the_Driver_on_your_Development_System">Installing the Driver on your Development System</a></h2>
<p>
The driver is available as a zip file.  To install the driver in this format you just unzip it to the directory of your choice using a program such as WinZip.  If you want to use the Diamond Systems DAQ demo programs which include Tornado project files for easy compilation, install the driver at <em>C:\DSCUD\</em> since this is the include path used in these project files.  The instructions below assume that <em>C:\DSCUD\</em> is the location of the driver files.
<p>
The driver consists of a header file <em>dscud.h</em> which you include in your C program, and a Tornado compiled static C library <em>libdscud5.a</em> which you link with your program.  See the instructions below for more information on these steps.  
<p>
<p><p><h2><a name="Compiling_With_the_Driver">Compiling With the Driver</a></h2>
<p>
These instructions go step by step through the process of creating your own VxWorks application which links with DSCUD for VxWorks using Tornado 2.2 for Windows.
<p>
<h3><a name="Step_1:_Create_Your_Project">Step 1: Create Your Project</a></h3>
<p>
<ol><li>Launch the Tornado tools on your development PC.
</li><li>In the <em>File</em> menu select <em>New Project</em>.
</li><li>In the window that appears, select the <em>New</em> tab and then double click <em>Create downloadable application modules for VxWorks.  This will launch a wizard for creating your application.</em>
</li><li>On the first stage of the wizard, chose whatever settings you'd like for the <em>Name</em>, <em>Location</em>, and <em>Workspace</em>.  Click <em>Next</em>.
</li><li>On the second stage of the wizard, choose a project or toolchain for compiling your application and click <em>Next</em>.
</li><li>The last stage lets you review your settings.  Click <em>Finish</em> to create your project.
</li></ol><p>
<h3><a name="Step_2:_Import_Your_Code">Step 2: Import Your Code</a></h3>
<p>
<ol><li>The Workspace window appears after you create your project.  Click the <em>Files</em> tab at the bottom of this window.  Right click in the Workspace window and select <em>Add Files</em>.  Select the <em>.c</em> and <em>.h</em> files that compose your program.
</li><li>You must be sure that your program includes the DSCUD header file for example with this command. <em>#include &lt;dscud.h&gt;</em>.
</li></ol><p>
<h3><a name="Step_3:_Configure_Build_Options">Step 3: Configure Build Options</a></h3>
<p>
<ol><li>In the Workspace window click the <em>Builds</em> tab at the bottom of the window.  Click the <em>+</em> to open the tree which shows your toolchain which you will configure, for example <em>Pentium3gnu</em>.  Select <em>properties</em>.
</li><li>The Build Specification Properties window will appear.  Click the <em>Macros</em> tab.  Pull down the menu to select the <em>PROJ_LIBS</em> option.  Type <em>C:\DSCUD\libdscud5.a</em>.  Click <em>Add/Set</em>.
</li><li>Click the <em>C/C++ compiler</em> tab.  Click the "Include paths<em> button.  In the new window that appears push the </em>Add<em> button.  In the new window that appears type </em>C:\DSCUD\<em>.  Click </em>OK<em> and then </em>OK<em> to close these two windows.</em>
</li><li>Click <em>Apply</em> and then <em>OK</em> to save your changes and exit the Build Specification Properties window.
</li></ol><p>
Your application is now ready to be built.  See the VxWorks Tornado documentation for additional help with this development environment.
<p>
<h2><a name="Important_Notes_on_DSCUD_for_VxWorks">Important Notes on DSCUD for VxWorks</a></h2>
<p>
These notes apply only to the VxWorks version of DSCUD.
<p>
<ol><li> The driver is not thread safe.  If you have multiple threads or programs interacting with the same board at the same time using DSCUD you must implement your own synchronization methods.
</li><li> User interrupt functions are called directly from the interrupt service routine.  This is a restrictive environment.  See the VxWorks documentation for more information on features which are not available in an interrupt context.
</li><li> Interrupt sharing support is not implemented in DSCUD for VxWorks.  Each DAQ board must be assigned a unique IRQ for interrupt driven DAQ operations.  Support for this feature may appear in future versions of the software.
</li></ol><p></div><p><em> <br> This page was last modified 23:55, 25 Jan 2005.<br>Copyright (c) 2004 Diamond Systems.  All Rights Reserved.</em><!-- Time since request: 0.17 secs. --></body></html>

⌨️ 快捷键说明

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