Continuous Measurement and Logging (NI-DAQmx)

The Continuous Measurement and Logging (NI-DAQmx) sample project acquires measurements continuously and logs them to disk. It executes five loops in parallel:

This sample project also features a Settings dialog box (Settings.lvlib) you can use to configure the application.

This sample project is based on the Queued Message Handler template. Refer to the Queued Message Handler template and its documentation, available from the Create Project dialog box, for information about how this template works.

System Requirements

Requirements

LabVIEW Base Package and NI-DAQmx driver software.

Project Diagram

This sample project uses the NI-DAQmx API to configure and acquire a measurement with hardware I/O.

Use Cases

The Continuous Measurement and Logging (NI-DAQmx) sample project is designed for a continuous measurement application that requires a responsive user interface; that is, users should be able to click buttons even while the application is executing another command.

Running this Sample Project

  1. In the Project Explorer window, open and run Main.vi.
  2. Click Start. The program begins acquiring waveform data.
  3. Click the other front panel buttons to explore the sample project.

Customizing this Sample Project

If the default logging behavior does not meet the needs of your application, you can modify this sample project in the following ways:

If the default logging behavior is too slow for your application, you can use the DAQmx Start New File and DAQmx Configure Logging VIs. Refer to the VI documentation for more information.

Additional Resources

Refer to the LabVIEW Help, available by selecting Help»LabVIEW Help for information about LabVIEW concepts or objects used in this sample project. You can also use the Context Help window to learn basic information about LabVIEW objects as you move the cursor over each object. To display the Context Help window in LabVIEW, select Help»Show Context Help.

Important Information

Copyright

© 2013 National Instruments. All rights reserved.

Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying, recording, storing in an information retrieval system, or translating, in whole or in part, without the prior written consent of National Instruments Corporation.

National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by copyright and other intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to others, you may use NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicable license or other legal restriction.

End-User License Agreements and Third-Party Legal Notices

You can find end-user license agreements (EULAs) and third-party legal notices in the following locations:

Trademarks

LabVIEW, National Instruments, NI, ni.com, the National Instruments corporate logo, and the Eagle logo are trademarks of National Instruments Corporation. Refer to the Trademark Information at ni.com/trademarks for other National Instruments trademarks.

Other product and company names mentioned herein are trademarks or trade names of their respective companies.

Patents

For patents covering the National Instruments products/technology, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your media, or the National Instruments Patent Notice at ni.com/patents.