发表于:2004-03-11 08:40:00
楼主
这几天在做毕业论文,用得adlink的pci9118数据采集卡,vb编程,编译时总是出现:AI_9118_Config的参数不可选,怎么回事?请大侠指点,不胜感激。
Private Sub btnStart_Click()
Dim result As Integer
Dim i As Integer
cobRange.Enabled = False
cobSample.Enabled = False
cobChn.Enabled = False
cobTimes.Enabled = False
picScreen.Cls
PicScreen2.Cls
result = AI_9118_Config(Card, P9118_AI_ExtG, 0, 1024)
Range = range_value(cobRange.ListIndex)
result = AI_ContScanChannels(Card, gnADChn, Range, gnBuffer(0), gnCount, CSng(nSample * 1000), SYNCH_OP)
ShowData (gnCount)
End Sub