S
smartcn
Unregistered / Unconfirmed
GUEST, unregistred user!
我正在做课程设计,做的是一个金属切削计算机仿真软件;
其中有一部分是要通过数据采集生成一个实时的动态曲线 y轴为切削力Fz,x轴为时间T
有点像股票K线图的样子。
现有问题如下:
1)采用的是PCI-8333多功能模入模出接口卡,PCI8KA系列PCI数据采集卡,
是AMCC公司的5920 PCI总线接口控制芯片,驱动中提供了动态链接库Pci8kp.dll
说明书提供的例子是用VB写的,如下:
Public Type ZT_PCIBOARD
lIndex As Long
hHandle As Long
nCh As Integer
lData As Long
pldata As Long
lCode As Long
End Type
Public Type ZT_SIRQCALLBACK
lIndex As Long
End Type
Public Declare Function OpenDevicePlx Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
Public Declare Function CloseDevicePlx Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
Public Declare Function OpenIRQ Lib "pci8kp.dll" (hDeviceList As Long, ByVal hDeviceNum As Long, ByVal IrqCallBack As Long) As Long
Public Declare Function CloseIRQ Lib "pci8kp.dll" () As Long
Public Declare Function ZT8319DI Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
Public Declare Function ZT8319DO Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
Public Declare Function ZT8319AI Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
Public Declare Function ZT8319Init Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
.... ....
如何改为用delphi 使用这个Dll文件中的函数呢?
2),需要用采集卡采集三个数值,分别为主切削力Fz,进给量f,速度v 存入数据库;
并用采集到的数据Fz生成一个实时的动态曲线 ,y轴为切削力Fz,x轴为时间T;
用什么控件可以实现呢?编程的过程该注意些什么呢?
我刚学delphi,希望各位能给我一些指导:)
能否给我一个相关的例程?
谢谢~
我的邮箱是
smartcn@vip.sina.com
其中有一部分是要通过数据采集生成一个实时的动态曲线 y轴为切削力Fz,x轴为时间T
有点像股票K线图的样子。
现有问题如下:
1)采用的是PCI-8333多功能模入模出接口卡,PCI8KA系列PCI数据采集卡,
是AMCC公司的5920 PCI总线接口控制芯片,驱动中提供了动态链接库Pci8kp.dll
说明书提供的例子是用VB写的,如下:
Public Type ZT_PCIBOARD
lIndex As Long
hHandle As Long
nCh As Integer
lData As Long
pldata As Long
lCode As Long
End Type
Public Type ZT_SIRQCALLBACK
lIndex As Long
End Type
Public Declare Function OpenDevicePlx Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
Public Declare Function CloseDevicePlx Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
Public Declare Function OpenIRQ Lib "pci8kp.dll" (hDeviceList As Long, ByVal hDeviceNum As Long, ByVal IrqCallBack As Long) As Long
Public Declare Function CloseIRQ Lib "pci8kp.dll" () As Long
Public Declare Function ZT8319DI Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
Public Declare Function ZT8319DO Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
Public Declare Function ZT8319AI Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
Public Declare Function ZT8319Init Lib "pci8kp.dll" (nZT_PCIBOARD As ZT_PCIBOARD) As Long
.... ....
如何改为用delphi 使用这个Dll文件中的函数呢?
2),需要用采集卡采集三个数值,分别为主切削力Fz,进给量f,速度v 存入数据库;
并用采集到的数据Fz生成一个实时的动态曲线 ,y轴为切削力Fz,x轴为时间T;
用什么控件可以实现呢?编程的过程该注意些什么呢?
我刚学delphi,希望各位能给我一些指导:)
能否给我一个相关的例程?
谢谢~
我的邮箱是
smartcn@vip.sina.com