Example Code

Call VI to Do Data Acquisition in a New Thread While Continuing Sequence in TestStand Using LabVIEW and TestStand

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW
  • Teststand

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview

This example shows a way to do DAQ task called by TestStand in a new thread.


Description
This sequence calls a VI that performs Analog Output (a Sine Wave) while the sequence continues then sends a UIMessage to the VI when it is time to stop.

The VI can be modified to perform any sort of Data Acquisition. This would be useful in an application when you must output a sine wave, pulse train, or any other signal which runs continuously while other tests are performed. You could also input signals to analyze later while continuing a sequence.

 


Requirements

  • LabVIEW 2012 (or compatible)
  • NI-DAQmx 12.0 (or compatible)
  • TestStand 2012 (or compatible)


Steps to Implement or Execute Code

  • Open the sequence file in the folder.
  • Run the sequence.

 

Additional Information or References
Sequence File Screenshot

3-152-1.png

 

VI Snippet

3-152-2.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

With warm regards,

David D.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.