Using NI-FGEN with C# and Visual Basic .NETPrimary Software: Driver Software>>NI-FGENPrimary 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 and niFgen.cs 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. To use the below linked examples you will need to download the wrapper in the below linked article entitled Microsoft Visual C# and Visual Basic .NET Wrappers for National Instruments Modular Instruments Drivers. There are two wrapper versions available. Use the wrappers found in the NI-FGEN_NEW.zip file for NI-FGEN 2.6.1 and later and NI-FGEN.zip for earlier versions of the driver. Note: Arbitrary Sequence generation is only supported in the newer wrapper. 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 Arbitrary Sequence 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: 11/17/2009 Document ID: 4IEGDQDE |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
