Este contenido no está disponible en su idioma de su preferencia.

El contenido se mostrará en otro idioma disponible. Su navegador puede proporcionar una funcionalidad para ayudarle a traducir el texto.

Designing Custom User Interfaces in NI LabVIEW for Your NI USB-TC01

Updated Dec 29, 2023

Environment

Hardware

  • USB-TC01

Software

  • LabVIEW

Driver

  • NI-DAQmx

Operating System

  • Windows

LabVIEW provides an easy-to-use application development environment designed specifically for the needs of engineers and scientists. Without any prior programming experience, you can use LabVIEW to take measurements from your USB-TC01 and create custom software functionality.

LabVIEW makes it easy to design graphical user interfaces (GUIs) for your measurement applications. You can interact with data using hundreds of drag-and-drop controls, graphs, and 3D visualization tools. You can also customize the size, position, and color of built-in controls or create your own in seconds.

  1. Start with a basic measurement VI


Figure 1. LabVIEW applications consist of a Front Panel (left) and Block Diagram (right). Use the DAQ Assistant and Time Delay functions in a while loop to continually acquire data at an interval and plot it to a chart.

 
  1. Right-click on the Front Panel to see the Controls palette.

Figure 2. LabVIEW includes many different controls to interact with the application.
 
  1. Navigate through the Controls palette and drag and drop numeric and boolean controls and indicators onto the Front Panel as shown in Figure 3.

Figure 3. Controls input data from the user and indicators output or display data to the user.
 
  1. Select View » Tool Palette on the Front Panel menu bar.

Figure 4. Use the Tool Palette to paint objects on the Front panel different colors.
 
  1. Paint the graph, buttons, indicators, and background different colors.

Figure 5. You can customize the colors on the user interface to emphasize certain elements.
 
  1. The Controls Express palette displays the basic controls. To view the full palette, right-click on the Front Panel, click the arrows to expand the palette, and navigate to the System palette.

Figure 6. By default, LabVIEW shows the basic controls; you can expand the palette to see the full palette.
 
  1. Replace the controls on the Front Panel with system controls. Select Decorations » System Recessed Frame to add decorations that group the controls.

Figure 7. System controls look more professional by emulating your operating system controls.
 
  1. Controls can be organized with containers. Place a Tab Control from the Containers palette onto the Front Panel and drag the graph and other controls to separate tabs.

Figure 8. This image shows the Tab Control with the Temperature Measurement tab selected.


Figure 9. This image shows the Tab Control with the Other Controls tab selected.
 
  1.  LabVIEW also gives you the ability to customize the look and feel of each individual control so you can create more advanced user interfaces such as Figure 10.

Figure 10. Custom UI designed in LabVIEW - download the code on the UI Interest Group community page.

Attachments