The golden pins of the PCI card can be oxidized after months or years

Similar documents
ActiveX Control






概述

¬¬

BOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2

<30312E20B9EFB7C5AF66BEC7A4A4A175A5CDAC7ABE69B3B1A176AABABDD7AA522E706466>

3. 企 业 债 券 : 公 司 债 券 : 5. 证 券 公 司 债 券 : 6. 企 业 短 期 融 资 券 : 7. 中 期 票 据 : 8. 资 产 支 持 证 券 : 9. 国 际 开 发 机 构 人 民 币 债 券 : 10. 中 小 非 金 融 企 业 集 合 票 据 例 题? 判 断


優質居所 攜手共建

C语言的应用.PDF

mvc

<BBB6D3ADB7C3CECABFC6D1A7CEC4BBAFC6C0C2DB>

MATLAB 1

<4D F736F F D20CEDECEFDD0C5BDDDB5E7C6F8B9C9B7DDD3D0CFDEB9ABCBBECAD7B4CEB9ABBFAAB7A2D0D0B9C9C6B1D5D0B9C9CBB5C3F7CAE9A3A8C9EAB1A8B8E C4EA36D4C238C8D5B1A8CBCDA3A92E646F63>

目 录 1. 概 述 导 航 模 块 主 页 发 现 分 享 消 息 我 核 心 功 能 注 册 / 登 录 注 册... 10

4. 於 INF Processing Options 對話窗中, 選取 Automatic 後按 OK 5. 於 Import File 對話窗中, 按 Start Copyright by ICP DAS Co., Ltd. All rights are reserved. 2 / 12

TPM BIOS Infineon TPM Smart TPM Infineon TPM Smart TPM TPM Smart TPM TPM Advanced Mode...8

C++ 程式設計

audiogram3 Owners Manual

Table of Contents

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

深圳市太光电信股份有限公司章程

FY.DOC

提问袁小兵:


38 诚 信 始 于 入 口 从 入 口 处 着 手 打 好 律 师 队 伍 建 设 的 诚 信 基 础 / 刘 彦 平 4 0 我 国 证 券 公 司 治 理 缺 陷 的 根 源 及 其 出 路 / 黄 运 成 曹 里 加 李 畅 4 3 中 止, 因 为 什 么? 被 告 人 胡 鹏 等 五 人

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

华恒家庭网关方案

数据采集编程指南 下篇 ni.com/china/daq

¬¬

ebook140-8

,, [8 ] (p. 666),, [8 ] (p. 544), (1643 ), 30,,,,,,,,,,,,,,,,,,,,,,,, [9 ] (),, [8 ] (p. 306),,, [8 ] (p. 1052),, [8 ] (p. 1070),,,,, (1640 ),, [10 ]

Data Management Software CL-S10w

CC213

员工签到录

untitled

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

第3章.doc

EK-STM32F

<4D F736F F F696E74202D208E9197BF825297BC94F5834F838B815B837682C58EE DE81418D7390AD81458E7396AF81458E968BC68ED282CC98418C67>

C 1

Java

untitled

INTRODUCTION TO COM.DOC

“PC通”商业计划书.doc

全国计算机技术与软件专业技术资格(水平)考试

2/14 Buffer I12, /* x=2, buffer = I 1 2 */ Buffer I243, /* x=34, buffer = I 2 43 */ x=56, buffer = I243 Buffer I243I265 code_int(int x, char *buffer)

2002 Shintoukai Chinese Academy. All rights reserved 2

試卷一

月光迴旋曲

Microsoft Word - PHP7Ch01.docx

epub83-1

<33352E20C0B3A5CEB2D5BEC7A7DEB34EB5FBBBF9A4A4C3C4B5C7AC72A9CAAABAACE3A873B669AE692E706466>

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.07.doc

陳偉補習班環境介紹

Data Management Software CL-S10w

輕鬆學 Dreamweaver CS5 網頁設計..\Example\Ch0\ \.html..\example\ch0\ \mouse.txt..\example\ch0\ \ _Ok.html 學習重點 JavaScript 複製程式碼 mouse.txt Ctrl+C Ctrl+C 0-4

<32372E20B077A8EBABE1B7CBA5DEA4A3A650B260ABD7B9EFAA76C0F8AFABB867AEDAABACC056B4D5AF66AABAC0F8AEC4B1B4AFC12E706466>


DAGONG PRESS REVIEW world.people.com.cn

RunPC2_.doc

C PICC C++ C++ C C #include<pic.h> C static volatile unsigned char 0x01; static volatile unsigned char 0x02; static volatile unsigned cha

Measurement Studio Expands Your Test and Measurement Programming Power


51 C 51 isp 10 C PCB C C C C KEIL

China Academic Journal Electronic Publishing House. All rights reserved.

China Academic Journal Electronic Publishing House. All rights reserved.


幻灯片 1


甄試報告1125.PDF

JLX

行业

bnb.PDF

<4D F736F F D20D1A7C9FACAD6B2E1B8C4D7EED6D5A3A8B4F8B1EDB8F1BCD3D2B3C2EBB0E6A3A9372E3239>

桂林市劳动和社会保障局关于

第三章 維修及管理

Microsoft Word 年度选拔硕博连读研究生的通知.doc

Chapter 2 GIGA-BYTE TECHNOLOGY CO., LTD. ("GBT") GBT GBT GBT

Microsoft Word - 01.DOC

Spyder Anaconda Spyder Python Spyder Python Spyder Spyder Spyder 開始 \ 所有程式 \ Anaconda3 (64-bit) \ Spyder Spyder IPython Python IPython Sp

行业

CC213

Microsoft PowerPoint - Lecture7II.ppt

WinMDI 28

Oracle Solaris Studio makefile C C++ Fortran IDE Solaris Linux C/C++/Fortran IDE "Project Properties" IDE makefile 1.

untitled

新版 明解C++入門編


劇情大綱 這是有關一對兄妹的故事 不過 所有的情節 必需先從一隻山羊說起 邱興傳 阿傳 在一次部隊的演習中撿到了一隻山羊 沒有烙印記號也 沒人招領 所以退伍時決定把羊帶回家 他攔了一台空的小貨車 央求對方 載他和羊到火車站去 也就在半路上 山羊講話了 山羊說 牠是鬼 卻被一個假裝是鬼的人給騙了 才逼

新・明解C言語入門編『索引』

TX-NR3030_BAS_Cs_ indd

8idml_20_1_q

代謝綜合徵中醫治療及病案分析一例

Transcription:

Q. 如何在 LabWindows/CVI 編譯 DAQ Card 程式? A: 請參考至下列步驟 : 步驟 1: 安裝驅動程式 1. 安裝 UniDAQ 驅動程式 UniDAQ 驅動程式下載位置 : CD:\NAPDOS\PCI\UniDAQ\DLL\Driver\ ftp://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/unidaq/dll/driver/ 2. 更詳細的驅動程式安裝說明, 請參考 UniDAQ SDK 使用手冊 使用手冊下載位置 : CD:\NAPDOS\PCI\UniDAQ\Manual\ http://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/unidaq/manual/ 步驟 2: 安裝 DAQ Card 至電腦上 1. 關掉電腦電源 2. 打開電腦機殼 3. 將 I/O 板卡插入至一個未使用的 PCI 插槽 4. 裝上機殼 5. 重新啟動電源 步驟 3: 取得.h 檔及.lib 檔案 您可從 VC 範列程式中取得 UniDAQ.h 檔及 UniDAQ.lib 檔來使用 VC 範列程式下載位置 : CD:\NAPDOS\PCI\UniDAQ\DLL\Demo\ http://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/unidaq/dll/ Copyright 2013 ICP DAS Co., Ltd. All Rights Reserved. 1

步驟 4: 執行 LabWindows/CVI 後, 選擇 File New Project from Template 來建立一個新的專案 1 2 步驟 5: 選擇 User Interface Application 3 4 在此變更專案名稱 5 在此設定專案的儲存路徑 6 取消此項目 ( 不勾選 ) 7 Copyright 2013 ICP DAS Co., Ltd. All Rights Reserved. 2

步驟 6: 新增.lib 檔至新增的專案中 1. 在 LabWindows/CVI 開發軟體功能選單上, 單擊 Edit Add Files to Project Library (*.lib) 8 9 10 2. 選擇 UniDAQ.lib 檔後, 單擊 Add 按鈕, 再單擊 OK 按鈕 11 12 13 Copyright 2013 ICP DAS Co., Ltd. All Rights Reserved. 3

步驟 7: 在專案的.c 檔中的 Include files 區塊, 新增 #include<windows.h> 及 #include UniDAQ.h 雙擊.c 檔 14 15 Copyright 2013 ICP DAS Co., Ltd. All Rights Reserved. 4

步驟 8: 您可以開始設計您所需的使用介面 (.uir 檔 ) 及編寫程式碼 (.c 檔 ) 範例 : DIO 功能範例程式如下 : 1. 設定 DIO 使用介面 IDC_COMBO_Selectboard Callback function: OnSelchangeCOMBOSelectBoard IDC_EDIT_DO IDC_COMBO_OutputPort IDC_BTN_DO Callback function: OnBtnDo IDC_COMBO_InputPort butexit Callback function: OnCancel IDC_EDIT_DI 2. 撰寫程式碼, 如下 : #include <Windows.h> #include <cvirte.h> #include <userint.h> #include "UniDAQ_DIO.h" #include "UniDAQ.h" static int panelhandle; WORD wrtn; int wboardno; int wboardindex; WORD PortIndex; IXUD_DEVICE_INFO sdevinfo[max_board_number]; IXUD_CARD_INFO scardinfo[max_board_number]; char szmodelname[20]="unknow Device"; int main (int argc, char *argv[]) int icardnum =0; WORD wtotalboards; if (InitCVIRTE (0, argv, 0) == 0) return -1; /* out of memory */ if ((panelhandle = LoadPanel (0, "UniDAQ_DIO.uir", PANEL)) < 0) return -1; Copyright 2013 ICP DAS Co., Ltd. All Rights Reserved. 5

//Initial the resource and get total board number form driver wrtn=ixud_driverinit(&wtotalboards); if (wrtn!=0) return wrtn; ClearListCtrl(panelHandle, PANEL_IDC_COMBO_SelectBoard); InsertListItem (panelhandle, PANEL_IDC_COMBO_SelectBoard, 0, --Select Board--,0); //Get DAQ Card Information for(word wboardindex = 0; wboardindex<wtotalboards ; wboardindex++) wrtn = Ixud_GetCardInfo(wBoardIndex,&sDevInfo[wBoardIndex],&sCardInfo[wBoardIndex],szModelName); InsertListItem (panelhandle, PANEL_IDC_COMBO_SelectBoard, -1, szmodelname, wboardindex); DisplayPanel (panelhandle); RunUserInterface (); DiscardPanel (panelhandle); int CVICALLBACK OnSelchangeCOMBOSelectBoard (int panel, int control, int event, void *callbackdata, int eventdata1, int eventdata2) WORD wportchnum; char sportno[32]; GetCtrlIndex (panelhandle, PANEL_IDC_COMBO_SelectBoard, &wboardno); wportchnum = scardinfo[wboardno].wdioportwidth; switch (event) case EVENT_COMMIT: //Total D/O port ClearListCtrl(panelHandle, PANEL_IDC_COMBO_OutputPort); for (PortIndex = 0; PortIndex < (scardinfo[wboardno].wdioports + scardinfo[wboardno].wdoports) ;PortIndex++) sprintf(sportno, "%02d", PortIndex); InsertListItem (panelhandle, PANEL_IDC_COMBO_OutputPort, -1, sportno,portindex); //Total D/I port ClearListCtrl(panelHandle, PANEL_IDC_COMBO_InputPort); for (PortIndex = 0; PortIndex < (scardinfo[wboardno].wdioports + scardinfo[wboardno].wdiports) ;PortIndex++) sprintf(sportno, "%02d", PortIndex); InsertListItem (panelhandle, PANEL_IDC_COMBO_InputPort, -1, sportno, PortIndex); break; Copyright 2013 ICP DAS Co., Ltd. All Rights Reserved. 6

int CVICALLBACK OnBtnDo (int panel, int control, int event, void *callbackdata, int eventdata1, int eventdata2) WORD wrtn; int woutputportno; int winputportno; DWORD dwdoval; DWORD dwdival; GetCtrlIndex (panelhandle, PANEL_IDC_COMBO_SelectBoard, &wboardno); GetCtrlIndex (panelhandle, PANEL_IDC_COMBO_OutputPort, &woutputportno); GetCtrlIndex (panelhandle, PANEL_IDC_COMBO_InputPort, &winputportno); switch (event) case EVENT_COMMIT: break; //Config the DIO Port if(scardinfo[wboardno].wdioports>0) wrtn = Ixud_SetDIOModes32(wBoardNo, 1<<wOutputPortNo); //Write digital output port Value GetCtrlVal (panelhandle, PANEL_IDC_EDIT_DO, &dwdoval); wrtn = Ixud_WriteDO(wBoardNo,wOutputPortNo,dwDOVal); //Read digital input port Value wrtn = Ixud_ReadDI(wBoardNo,wInputPortNo,&dwDIVal); SetCtrlVal (panelhandle, PANEL_IDC_EDIT_DI, dwdival); int CVICALLBACK OnCancel (int panel, int control, int event, void *callbackdata, int eventdata1, int eventdata2) switch (event) case EVENT_COMMIT: //Release the resource form Driver wrtn = Ixud_DriverClose(); QuitUserInterface (0); break; 更多更詳細的 UniDAQ DLL 函式資訊, 請參考至 UniDAQ DLL 使用手冊 手冊下載位置如下 : http://ftp.icpdas.com/pub/cd/i ocard/pci/napdos/pci/unidaq/ manual/ Copyright 2013 ICP DAS Co., Ltd. All Rights Reserved. 7