Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 3 out of 5     Rate this Document

Using NI-FGEN with Microsoft Visual Basic 6.0

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

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

Solution:
The National Instruments FGEN driver does support using Visual Basic 6.0. To use the NI-FGEN driver within Visual Basic all you need to do is include the NI-FGEN library with your Visual Basic 6.0 project. To include the NI-FGEN driver please take the following steps:
  1. From within Visual Basic 6.0, go to Project » References.
  2. Click the Browse button
  3. Navigate to the following location: C:\Program Files\IVI\Bin\niFgen_32.dll
If you are looking for NI-FGEN examples for Visual Basic 6.0, many of them are installed with the driver. The examples can be located by going to Start » Programs » National Instruments » NI-FGEN » Examples » Visual Basic or by navigating to C:\Program Files\IVI\Drivers\niFgen\Examples\VisualBasic.

If you are having trouble finding the Visual Basic 6.0 examples, it might be due to not properly installing support for Microsoft Visual Basic when you installed the NI-FGEN driver. For proper installation, it is recommended that you already have Visual Basic 6.0 installed prior to installing the NI-FGEN driver. The driver will automatically install the Visual Basic 6.0 examples and support if it sees that Visual Basic is installed on the system. If you have installed the driver before you installed Visual Basic or still don't see the examples, all you need to do is modify the NI-FGEN driver install to include Visual Basic support. This can be done by taking the following steps:
  1. Go to Start » Settings » Control Panel.
  2. Select Add or Remove Programs.
  3. In the list, Select National Instruments Software.
  4. In the next list, Select NI-FGEN and click Modify.
  5. Verify that you have selected to install support for Visual Basic
There is an additional example that can be found in the below related links section.

Related Links:
Developer Zone Example: VB6 niFGEN - Sweep Generation
KnowledgeBase 3939UN5B: Microsoft Visual C# and Visual Basic .NET Wrappers for National Instruments Modular Instruments Drivers

Attachments:





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

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