Locate and use sample projects and programming examples in NI-DAQmx.

Sample projects and programming examples help you start NI-DAQmx data acquisition tasks and explore advanced measurement features. You can use a sample project to quickly create and run a basic data acquisition task, or use programming examples to explore specific features and implement more advanced measurement scenarios.

These resources help you configure measurements, understand programming workflows, and develop data acquisition applications.

Sample Projects

You can use the My First DAQ Measurement Sample Project to quickly create and run a basic data acquisition task. You can then use examples to explore specific features or implement more advanced measurement scenarios.

Programming Examples

Each API includes a collection of programming examples that help you develop an application. You can modify example code and save it within an application. You can use examples to create a new application or to extend an existing application.

You can run examples without installed hardware by using a NI-DAQmx simulated device. For more information about simulated devices, see the Measurement & Automation Explorer Help for NI-DAQmx. In MAX, select Help » Help Topics » NI-DAQmx.

To find the locations of programming examples for your software application, see the following table.

Table 1. NI-DAQmx Example Locations by Software Application
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\.... In this path, <drive> indicates the drive on which Windows is installed.
Note Visual Studio 2003 and later do not require Measurement Studio.