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
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 |
---|---|
DAQExpress | |
LabVIEW NXG | |
LabVIEW or LabWindows/CVI | |
SignalExpress | ...\Program Files\National Instruments\SignalExpress\Examples |
ANSI C | <default path>\NI-DAQ\Examples\DAQmx ANSI C |
MFC 7.0 C++ | <default path>\NI-DAQ\Examples\MStudioVC2003 |
MFC 8.0 C++ | <default path>\NI-DAQ\Examples\MStudioVC2005 |
MFC 9.0 C++ | <default path>\NI-DAQ\Examples\MStudioVC2008 |
Visual Studio Version 2010, 2012, and 2013. .NET Framework 4.0 Languages (Visual C# .NET and Visual Basic .NET) .NET Framework 4.5 Languages (Visual C# .NET and Visual Basic .NET) .NET Framework 4.5.1 Languages (Visual C# .NET and Visual Basic .NET) |
<default path>\NI-DAQ\Examples\... |
For Windows, the default path is <drive>:\Users\Public\Public Documents\National Instruments\NI-DAQ\Examples\...