From 08:00 PM CDT Friday, August 12 - 01:00 PM CDT Saturday, August 13, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



MI和PXI的Microsoft VB 6.0的工具包



硬件: Modular Instruments

问题: 我正在Microsoft VB 6.0下写一个应用程序,将会使用到 NI模块化仪器和PXI产品.对于NI-Sync, NI-TCLK, NI-HWS没有VB 6.0的编程界面,我在VB 6.0里面应该怎样调用这些驱动呢?

解答:

NI目前不提供VB6.0下的NI-SYNC, NI-TClk, 和NI-HWS驱动的编程接口.然而,附件的工具包可以用来从VB 6.0里面调用这些函数.这个工具包是基于ANSI C的,对于ANSI C的支持在驱动中都包括了.The wrappers are based on ANSI C support which is included with each of the drivers.

Visual Basic 6.0 工具包支持的驱动:

为了在一个已经存在的项目中使用这个工具包,在Solutions Explorer中右键点击项目名称然后将他们加到solution中。选择Add»Module,然后在 Existing Item选项卡上,游览您选择驱动的.bas文件.点击 OK 将工具包加到您的项目中.



相关链接: Developer Zone Example: Synchronization of Multiple High-Speed Digitizers Using NI-TClk in Visual Basic 6.0
Developer Zone Example: Writing and Reading NI Hierarchical Waveform Storage (NI-HWS) Files in Visual Basic 6.0


附件:


niSync_VB6.zipniTClk_VB6.zipniHWS_VB6.zip


报告日期: 11/16/2006
最近更新: 11/20/2006
文档编号: 42AIQMX1