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 |
LabVIEW 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 |
Visual Basic .NET and C# for Visual Studio 2005 | *...NI-DAQ\Examples\DotNET2.0 |
* For Windows XP, the default path is <drive>:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\... . For Windows Vista, the default path is <drive>:\Users\Public\Documents\ National Instruments\NI-DAQ\Examples\... . |
Note Visual Studio 2003 and Visual Studio 2005 do not require Measurement Studio. |