GPIB卡VC编程问题请教

2025-12-25 05:26:39
推荐回答(3个)
回答1:

你用的GPIB-USB-HS卡厂商会提供配套软件给你,里面包含了对卡操作的一些动态库(VISA库),不管你用安捷伦的或者NI的,都会有这个库,并且接口函数都是一样的,viRead/viWrite/viQuery等,其实用起来很简单的

回答2:

我没用过GPIB卡,但用过其他视频卡。
你现在要做二次开发?
产品厂家给你DEMO了吗?如果有,参照DEMO里面的环境设置,包括头文件,库的位置等等,设置好。
GPIB卡有相关的函数库或者类库吗?
如果有的话,好好看一下厂家提供的帮助文档。

至于编程,和普通的VC开发区别不大。就是使用好GPIB卡对应的类库,API。

回答3:

First:You can transfer waveforms from the oscilloscope to an external controller using
the following sequence:
1. Select the waveform source using the DATa:SOUrce command.
2. Specify the waveform data format using DATa:ENCdg.
3. Specify the number of bytes per data point using DATa:WIDth.
4. Specify the portion of the waveform that you want to transfer using
DATa:STARt and DATa:STOP.
5. Transfer waveform preamble information using the WFMPRe? query.
6. Transfer waveform data from the oscilloscope using the CURVe? query.
then'save waveform At last
Write out the data to a file called "WFM_DATA.PRN".or *.BMP OR *.PCX
WAVEFL$ = "C:\WFM_DATA.PRN" ' set up an output file for the data time and voltages
Open WAVEFL$ For Output As #1
Print #1, USING; "\\"; XUNIT$; " ";
YOU need Learn:TDS3000_TDS3000B Programmer.pdf OR ohters .