From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



在C#和Visual Basic.NET中使用NI-FGEN



主要软件:
主要软件版本: 1.0
主要软件修正版本: N/A
次要软件: Measurement Studio>>Measurement Studio for .NET Support
硬件: Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators

问题: 怎样在C# 或者Microsoft Visual Basic .NET中编写NI-FGEN的应用程序?有范例程序可以参考吗?

解答: 目前NI-FGEN并不提供专门用于C# 或者Visual Basic .NET的API。但是,可以通过一层封装来实现在C#和Visual Basic .NET中调用NI-FGEN。这时通过将NI-FGEN封装进一个niFgen.vb的程序中。这意味着我们不必自己来实现DLL的调用,而只需创建一个niFgen对象并调用其方法属性。

目前已经有很多使用这些封装进行编程的范例程序,可以通过下面链接来下载。

相关链接: KnowledgeBase 3939UN5B: Microsoft Visual C# and Visual Basic .NET Wrappers for National Instruments Modular Instruments Drivers
Developer Zone Example: C# NI-FGEN - Sweep Generator
Developer Zone Example: VB.NET NI-FGEN - Sweep Generator
Developer Zone Example: VB.NET NI-FGEN - Setting Clock Mode
Developer Zone Example: VB.NET NI-FGEN - 5404 Sine Waveform Generation
Developer Zone Example: VB.NET NI-FGEN - Arbitrary Waveform Generation
Developer Zone Example: VB.NET NI-FGEN - Basic Standard Waveform
Developer Zone Example: VB.NET NI-FGEN - Function Generator
Developer Zone Example: VB.NET NI-FGEN - Triggers

附件:





报告日期: 02/15/2008
最近更新: 01/21/2009
文档编号: 4IEGDQDE