TDMS Data Logging From Multiple DAQmx Tasks in LabVIEW

製品と環境

このセクションは、サンプルの作成に使用された製品およびOSを反映します。

以下に示された製品を含め、NIのソフトウェアをダウンロードするには、ni.com/downloadsをご覧ください。

    ドライバ

  • NI-DAQmx

コードとドキュメント

添付

Description

Overview

 This example shows how to log data to a single TDMS file when coming from more than one DAQmx acquisition tasks.

 

Description

This example showshow to send data to a TDMS file from two DAQmx tasks that are running at the same rate. This method can be really useful when trying to substitute the DAQmx Configure Logging VI with multiple tasks running in different devices but are all in the same application.

 

Hardware and Software Requirements

LabVIEW Base Development System 2012 or higher.

NI-DAQmx 12.0 or higher.

 

Steps to Implement or Execute Code

  1. Download the attached VI.
  2. Select your analog inputs in Task 1 and Task 2.
  3. Select an Acquisition Rate.
  4. Select a TDMS File Path.
  5. Run the VI.
  6. Click Stop when finished logging.

 

NIコミュニティのサンプルコード交換のサンプルコードは、MIT Licenseによりライセンス供与されています。