原创 使用Windriver生成PCI驅動

首先安裝Windriver,這裏用的是V10.2,據說這個版本支持Win7 X64。 安裝前,我還注意看了一下,ISE14.7用的也是這個版本。 將PCI卡插入到計算機主板上,然後啓動。貌似卡的檢測需要用到BIOS,因此建議先安裝Wind

原创 wsProgressBar

using System; using System.Collections.ObjectModel; using System.ComponentModel; using System.Drawing; using System.Tex

原创 StringX

namespace wsControls { public class StringX { public static char mylar = (char)220; #region [

原创 打開,關閉設備

首先添加引用: using Jungo.wdapi_dotnet; using Jungo.yourapp_lib;獲取PCI設備列表: private YourApp_DeviceList pciDevList;//Declare

原创 FileAssociation

using System; using System.Text; using System.Runtime.InteropServices; using System.Windows.Forms; using Microsoft.Win3

原创 wsPanelView

using System; using System.Collections.ObjectModel; using System.ComponentModel; using System.Drawing; using System.Dra

原创 Windriver的VCS開發環境

折騰了一整天,終於能成功編譯了。話說,WinDriver真操蛋,即使最新版的V11.7,配合Win7 x64和VCS2012,生成的C#工程雖然能夠編譯成功,但是運行時卻總是報錯[WDC_PciGetDeviceInfo()]等函數都找不

原创 添加INF驅動

爲板卡添加Windriver生成的驅動,其過程稍有別於其他常見設備。主要過程如下: 打開設備管理器,找到板卡: 【注】PCI卡在設備管理器中並不顯示爲未知設備而是在“系統設備”中顯示爲PCI RAM控制器;如圖: 果斷右鍵,Update

原创 ini, Reg

using System.Text; using Microsoft.Win32; namespace wsWin { #region [ *.ini file ] public class InI {

原创 wsFile

using System; using System.Collections.ObjectModel; using System.Data; using System.Drawing; using System.IO; using Sys

原创 wsPlot

using System; using System.Collections.ObjectModel; using System.ComponentModel; using System.Drawing; using System.Dra

原创 按地址讀取數據

對已知的地址進行數據讀取,需要用到下面讀取函數: UInt32 wdc_lib_decl.WDC_ReadAddr8(WDC_DEVICE_HANDLE hDev, UInt32 dwAddrSpace, uint dwOffset,

原创 win32

using System; using System.Runtime.InteropServices; using System.Drawing; using System.Text; namespace wsWin { pub

原创 wsSlider

using System; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.F

原创 打印字體

這一節的內容,不難,但是很重要。在SDX中使用字體,是應用程序經常會用到的的實際功能。 基本操作過程如下: 聲明資源 — 初始化 — 打印 代碼如下: TxFactory txFactory; TextFormat