Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Using NI-FGEN with C# and Visual Basic .NET

Primary Software: Driver Software>>NI-FGEN
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: Measurement Studio>>.NET Support
Hardware: Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators

Problem:
How do I write an application in C# or Microsoft Visual Basic .NET that uses the National Instruments NI-FGEN driver? Are there any examples that I can use?

Solution:
There is currently no native NI-FGEN API for C# or Visual Basic .NET.  However, there are wrappers available that will allow you to use the NI-FGEN driver in C# and Visual Basic .NET.  This is done by wrapping our NI-FGEN driver into a niFgen.vb assembly. This means that instead of doing the DLL calls ourselves, we create an niFgen Object and call its methods.

There are a few examples that have already been written using the wrapper.  These can be found below in the related links section.

Related Links:
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

Attachments:





Report Date: 02/15/2008
Last Updated: 03/11/2008
Document ID: 4IEGDQDE

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit