Getting Started with NI-DAQmx for Text-Based Programming

Updated Jul 26, 2023

Reported In


  • LabWindows/CVI
  • Measurement Studio


  • NI-DAQmx

Programming Language

  • Visual Basic .NET
  • C++
  • C# .NET
  • C

Issue Details

  • I just installed my NI-DAQmx driver and now I want to start programming in Visual Studio. Where should I begin?
  • I'm programming in C# and I want to speed up the sampling in my NI-DAQ device. I researched online and found the property "ADC Timing Mode." How can I learn how to do this programmatically within text-based languages?


NI-DAQmx provides helpful documentation with the driver installation that provides easy access to the explanation and implementation of many functions and properties for text-based programming languages. The documentation includes: NI-DAQmx drivers also include example code for various text-based programming languages. Their location within Windows computers can be found below:
  • C# & Visual Basic.NET (VB.NET)  - C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples
  • Measurement Studio - C:\Users\Public\Documents\National Instruments\MStudioVS<Visual Studio Version>\DotNET\Examples
  • ANSI C - C:\Users\Public\Public Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\...
  • LabWindows/CVI - C:\Documents and Settings\All Users\Documents\National Instruments\CVI\samples\DAQmx
  • Visual Basic 6.0 (VB 6) - C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\Visual Basic 6.0

Additional Information

If the example code is not in the specified location, reinstall the NI-DAQmx ADE Support and set the desired example folder to Install this feature to a local drive by clicking on the down arrow on the left side of the installer when given the option.