Condor Engineering, Inc.
Santa Barbara, California
BusTools/1553-API Visual Basic Notes
------------------------------------
All of the products supported by the BusTools/1553-API are supported under
Visual Basic Version 5, 6, and VB .NET.
See the file "read-VB.txt" in the readme directory for more information.
Note that the Visual Basic run time installation is NOT included with the
BusTools/1553-API distribution. In order to run the Visual Basic example
programs, you will need the Visual Basic run time support installed.
This support is normally included with the Visual Basic programming environment
which can be obtained from Microsoft or one of their distributors.
Working with Microsoft VB .NET
------------------------------
Introduction.
A new file, BUSAPI32NET.vb, is provided to support the Microsoft VB .NET environment.
This is generally similar to the BUSAPI32.TXT file used for VisualBasic 6.0, except
all the data types and type definitions have changed to be compliant with the .NET
framework.
Using the BUSAPI32NET.vb file
Many structure definitions for .NET contain Initializers which must be called before
structure values are set. In addition, the .NET environment imposes restrictions on
passing structures that contain multidimensional arrays of data or arrays of structures.
This dictates that the structure definitions use byte arrays for embedded multi-
dimensional arrays which requires a few more lines of code by the programmer. The
following .NET code shows an example using API_BM_TBUF.
Dim bmt As API_BM_TBUF declare bmt
bmt.Initialize() call initilaizer
Dim capture(4) As TRIGGER_DEF declare internal TRIGGER_DEF arrays
Dim stop1(4) As TRIGGER_DEF
capture(0).type = 3 set some data
capture(1).type = 4
stop1(0).type = 45 set more data
stop1(1).type = 566
'get address of capture in an intptr using Garbage Collector object
Dim myGC As GCHandle = GCHandle.Alloc(capture, GCHandleType.Pinned
Dim addrOfStruct As IntPtr
addrOfStruct = myGC.AddrOfPinnedObject()get the address of capture
'copy capture data to bmt structure (40 is number of bytes)
' 4 * (10 bytes per TRIGGER_DEF)
Marshal.Copy(addrOfStruct, bmt.capture, 0, 40)
'do the same thing for the stop1 array
myGC = GCHandle.Alloc(stop1, GCHandleType.Pinned)
addrOfStruct = myGC.AddrOfPinnedObject()
Marshal.Copy(addrOfStruct, bmt.stop1, 0, 40)
'now the data in structure has been set
'the BusTools function can be called
BusTools_BM_TriggerWrite (cardnum, bmt)
'in cases where internal multidimensional structure
'data is returned by a function, the Copy must again
'be used to get the data from the structure to the arrays
Marshal.Copy(bmt.stop1, 0, addrOfStruct, 40)
==============================================================================
Contact Information
==============================================================================
If you have any questions or need more technical information, please contact:
Condor Engineering, Inc.
101 W. Anapamu St.
Santa Barbara, CA
USA
phone: (805) 965-8000
fax: (805) 963-9630
e-mail: support@condoreng.com
Internet: http://www.condoreng.com
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Condor BusTools-1553-API (363个子文件)
VxW-1553-PPC604.a 669KB
VxW-1553-PPC603.a 668KB
VXW-VME-1553-API-P.a 610KB
libbusapi_pci.a 459KB
libbusapi_pci_k.a 459KB
VXW-1553-API-P3.a 344KB
VxW-Thales-PMC-1553.a 341KB
VxW-MCP750-1553.a 337KB
VxW-PMC-1553-PPC604.a 337KB
VxW-DY4-PMC-1553-PPC604.a 336KB
VxW-PMC-1553-PPC603.a 336KB
VxW-1553-API-P.a 268KB
VxW-1553-API-P2.a 266KB
VXW_1553_API_P4.a 266KB
Declare.bas 22KB
M1553.bas 15KB
Tree.bas 12KB
Helper.bas 9KB
BT1553.bas 9KB
BT_DBA.bas 8KB
BT_BIT.bas 7KB
CallBack.bas 2KB
tstcfg32.bat 1KB
Manual.bat 76B
1shotdmo.bat 17B
QuikView.bat 16B
condor_logo1.bmp 7KB
Tree3.bmp 1KB
Tree5.bmp 1KB
Tree4.bmp 1KB
Tree1.bmp 1KB
Tree2.bmp 1KB
dependencies.bri 742B
init.c 185KB
TSTCFG.C 161KB
bm.c 143KB
bc.c 138KB
rt.c 122KB
hwsetup.c 120KB
btdrv.c 88KB
DEMOCVI.C 82KB
VxW_Demo.c 64KB
playback.c 64KB
time.c 59KB
tst_rt.c 54KB
notify.c 49KB
LabView.c 48KB
mem_vxWorks.c 42KB
btdemo.c 38KB
bit.c 36KB
four_ch_int.c 34KB
Btvximap.c 33KB
btuser1.c 28KB
example_bcrtbm2.c 26KB
btuser0.c 25KB
example_bcrtbm2a.c 25KB
int_setup.c 24KB
int_setup.c 24KB
fileXfer.c 22KB
example_bm3_4ch.c 21KB
example_bcrt2.c 21KB
dumpmem.c 20KB
example_rt2c.c 19KB
Irqsetup.c 19KB
example_bc3a.c 17KB
example_rt2b1.c 17KB
example_bc3.c 17KB
usrsetup.c 16KB
example_2ch.c 16KB
example_rtmmbm.c 16KB
cei_int_pci_drv.c 16KB
example_bc2.c 16KB
example_bc3b.c 16KB
example_bc6b1.c 15KB
example_bc6b.c 15KB
integrity_irq_setup.c 15KB
example_rt2a.c 15KB
ei.c 15KB
example_bc4.c 14KB
example_bc6c.c 14KB
example_rt2.c 14KB
vme_int_setup.c 14KB
example_bcrt1.c 14KB
example_rt2b.c 13KB
mem_integrity.c 13KB
mem_vmic.c 13KB
example_bc1_memaccess.c 13KB
example_bc6a.c 13KB
example_rt1h.c 13KB
example_rt1_memaccess.c 13KB
example_bc1c.c 12KB
example_bc2a.c 12KB
vxwPPCboardSetup.c 12KB
example_bcrt1553a.c 12KB
CEI_VXW_INTERRUPT_FUNCTIONS.c 12KB
example_bc1b.c 12KB
example_bc6.c 12KB
example_bm3.c 12KB
example_bc5.c 12KB
example_bcei1.c 12KB
共 363 条
- 1
- 2
- 3
- 4
资源评论
- wanbo81572014-11-26内容相当全,太给力了,对于掌握Condor1553来说,是非常有帮助啊
- qq_169092852015-10-09请问驱动能不能适用于condor旧板卡?好像是2005年左右的板子。
- bookse82016-07-14是原版的安装文件,内有例程
- binsheng2392014-12-08已经下载,是原版的安装文件,内有例程。
dijkstar
- 粉丝: 266
- 资源: 120
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Python的图像阴影检测与去除源码(高分期末大作业项目).zip
- 基于C++/Qt实现的井字棋游戏
- 基于 Python 编程语言的 Web 框架Django
- Python和Flask实现的基于体检数据的城市公共健康可视分析系统源码+使用说明.zip
- 基于python实现的华为智慧工地-安全帽检测
- buck-boost_2023-12-16_12-12-13.eprj
- 后端开发关于数据库和API开发的介绍
- 机器学习和数据挖掘课程设计-米其林餐厅数据挖掘管理系统源码+使用文档说明.zip
- html html html展示我与ai的对化
- 数据结构课程设计-全国交通出行咨询模拟系统C语言实现源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功