NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

C# 通过GPIB通讯控制E3648A或E34401A

请问如何利用C#.net技术通过GPIB通讯来控制仪器设备,谢谢!

0 项奖励
1 条消息(共 2 条)
3,142 次查看

 如果您接受在Managed code中通过Interop 访问控制仪器的话,您可以下载34401的IVI-C驱动,再通过NI的Measurement Studio其自动转换成 .NET class来使用。

 

转换的具体步骤如下:

 

  1. Install VS2008 and MeasurementStudio
  2. Open the Visual Basic .NET or Visual C# project in which you want to generate an instrument driver wrapper class.
  3. Select Project>>Add New Item to launch the Add New Item dialog box.
  4. In the Templates pane, select NI Instrument Driver.
  5. Specify a name for the .NET instrument driver and click Add. The name you choose for the file becomes the name of the source file.
  6. In the New .NET Instrument Driver dialog box, select which instrument driver you want to create by browsing to the .fp filename. Click Next.
    2012-05-04_Forum_1.png
  7. Configure the code generation options. Default values are given based on information from the instrument driver .fp file.
  8. Click Finish
2 条消息(共 2 条)
3,139 次查看