Chapter 4 Measurement Studio Integrated Tools and Features© National Instruments Corporation 4-9 Measurement Studio User ManualTip For more information on how to create an NI-DAQmx user interface, refer to theUsing a .NET DAQ Component in a Project topic in the NI Measurement Studio Help.Creating NI-DAQmx User Code in Visual C++Note Measurement Studio 8.5 support for Visual Studio 2008 does not include support forVisual C++.You can create NI-DAQmx user code in Visual C++. The DAQmx UserCode wizard wraps the configured DAQmx task class in a user-friendlyclass and creates a dialog that provides an example of using the new class.You can use the user code in two different ways. You can call the DoModalfunction on the new dialog class, or you can use the user-friendly wrapperclass directly in your code by calling the class programmatically.To use the user code directly, create an instance of the DAQmx user codeclass and call the appropriate function in your source code. You can createan instance of the user code directly in source code, just as you create aninstance of any class directly in source code. Declare a variable of theappropriate type and use it directly. The .h file for the user-friendlywrapper for the DAQmx task class contains additional information on usingthe user code.Tip For more information on how to create user code, refer to the Using a DAQmx TaskClass in a Project topic in the NI Measurement Studio Help.Creating an Instrument Control ApplicationTo create a Measurement Studio instrument control application, use theInstrument I/O Assistant. The Instrument I/O Assistant, as shown inFigure 4-5, integrates into Visual Studio as a code designer. Use the AddNew Item wizard to add an instrumentation task to your project, and use theInstrument I/O Assistant user interface to create and configure theinstrumentation task. The Instrument I/O Assistant generates a VisualBasic .NET, Visual C#, or Visual C++ class that includes the functionalityyou configure in the user interface. Use this assistant to help you write codethat communicates with devices such as serial, Ethernet, or GPIBinstruments.Note The Instrument I/O Assistant is available only if you have installed either theMeasurement Studio Professional or Measurement Studio Enterprise package.