Finding Examples

Each API includes a collection of programming examples to help you get started developing an application. You can modify example code and save it in an application. You can use examples to develop a new application or add example code to an existing application.

To run examples without hardware installed, you can use an NI-DAQmx simulated device. In MAX, refer to the Measurement & Automation Explorer Help for NI-DAQmx by selecting Help»Help Topics» NI-DAQmx for information on NI-DAQmx simulated devices.

To find the locations of examples for your software application, refer to the following table.

Software Application Example Location
LabVIEW or LabWindows/CVI Help»Find Examples
SignalExpress Program Files\National Instruments\SignalExpress\Examples
ANSI C *...NI-DAQ\Examples\DAQmx ANSI C
MFC 7.0 C++ *...NI-DAQ\Examples\MStudioVC2003
Visual Basic .NET and C# for Visual Studio 2003 *...NI-DAQ\Examples\DotNET1.1
MFC 8.0 C++ *...NI-DAQ\Examples\MStudioVC2005
MFC 9.0 C++ *...NI-DAQ\Examples\MStudioVC2008
Visual Basic .NET and C# for Visual Studio 2005 *...NI-DAQ\Examples\DotNET2.0
Visual Basic .NET and C# for Visual Studio 2008 *...NI-DAQ\Examples\DotNET3.5
Note * For Windows, the default path is <drive>:\Users\Public\Public Documents\National Instruments\NI-DAQ\Examples\... .
Note Visual Studio 2003 and later do not require Measurement Studio.