是德科技
直播中

周睫蒙

8年用户 191经验值
私信 关注
[问答]

请问怎么用频率分析仪编程GPIB通信

您好,我的测量设置包括: - 频率分析仪B& K 7667 - 带有Agilent Connection Expert 16的GPIB接口82357B - 带XP的笔记本电脑此配置有效:通过交互式Io我可以向分析仪发送命令并在笔记本电脑上检索结果
屏幕。
到目前为止还可以。
然而,我的问题是如何自动化通信
我为RS232接口做了这种编程但是如何为GPIB制作类似的程序呢?
在这个“GPIB”程序中,必须将命令发送到分析仪,结果应存储在例如
一个文本文件。
我的问题:这可以在Connection Expert环境中用Visual Basic完成吗?
我们将不胜感激。
格哈德

以上来自于谷歌翻译


     以下为原文

  Hello,

My measuring setup consists of:
- frequency analyzer B&K 7667
- GPIB interface 82357B with Agilent Connection Expert 16
- laptop with XP

This configuration works:
Via the interactive Io I can send commands to the analyzer and retreive the results on the laptop screen.

This is ok so far.
My problem however is how to automate the communication.
I did this kind of programming for RS232 interfaces but how can I make a similar program for GPIB?
In this "GPIB"program a command must be sent to the analyzer and the result should be stored in e.g. a textfile.

My question:
can this be done within the Connection Expert environment with e.g Visual Basic?

Your help will be appreciated.

Gerhard  

回帖(1)

姜春阳

2019-5-20 07:24:14
您好Gerhard,看起来您可以在Agilent Connection Expert中设置连接。
为了以编程方式控制仪器,您可以使用VISA(虚拟仪器软件Archectecture)API。
Agilent Connection Expert提供了一个VISA地址,该命令用于带有VISA的open命令。有关多个IDE的文档可以在Agilent Connection Expert的Help-> Documentation-> API Documentation-> VISA下找到。
它包括几个通过Visual Basic控制仪器的例子。
另外,我们使用Agilent Connection Expert-> Help-> Programming Samples提供示例。
我首先会开始看看VB的IDN(识别)程序,以帮助您入门。
此示例将向您展示如何使用VISA打开连接,发送/检索简单命令以及关闭连接。编辑者:在2013年1月9日下午1:46

以上来自于谷歌翻译


     以下为原文

  Hi Gerhard,

It looks like you were able to setup a connection in Agilent Connection Expert.  In order to programatically control the instrument you can use the VISA (Virtual Instrument Software Archectecture) API.  Agilent Connection Expert provides a VISA address that is used in the open command with VISA.Documentation on this API for several IDEs can be found in Agilent Connection Expert under Help->Documentation->API Documentation->VISA.  It includes several examples on controlling instruments through Visual Basic.

Also, we ship examples with Agilent Connection Expert->Help->Programming Samples.  I would first start to look at the IDN (Identification) program for VB to get you started.  This example will show you how to use VISA to open a connection, send/retrieve a simple command, and close the connection.

Edited by: connectivity on Jan 9, 2013 1:46 PM
举报

更多回帖

发帖
×
20
完善资料,
赚取积分