Example Program Drafts

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Started with Swept Sine (DAQmx) Multiple Response Signals

Overview

This example is a modification for the "Getting Started with Swept Sine (DAQmx).vi" code found in LabVIEW's example finder. The modification allows (currently) for 2 response signals to be measured.


Description

For instructions on how to extend the code further to allow for a higher number of response signals, see the code on the block diagram of the main.vi. There has been a lot of demand for this functionality and thought this edit would therefore be worthwhile.

NOTE: This modification requires edited revisions of some example VIs. You may therefore need to manually change the expected paths of some of the SubVIs to point to those in the "Swept Sine Multiple Response" folder. All of the SubVIs needed are included in the .zip.

The VI performs the following:


  1. Initialize a swept sine measurement by specifying the hardware device and channel settings.
  2. Configure the source by specifying the test frequencies, amplitude, and whether or not you want the sweep to continue repeating.
  3. Set the settling and integration parameters to allow sufficient time for the DUT to settle before the measurement is performed at the new test frequency and sufficient integration time to achieve the desired level of precision.
  4. Explicitly set the sample rate for the measurement. The rate is automatically selected if this VI is not used. The same rate is used for input and output channels.
  5. Specify the device propagation time specific to the data acquisition device being used for the measurement. The device propagation time can be measured using the SVS Measure Propagation Delay VI.
  6. Start the swept sine to perform the hardware configuration and start the output and input tasks. Synchronization of the channels is performed internally in this VI.
  7. Generate the excitation and acquire the stimulus and response data at each test frequency.
  8. Convert the raw data for displaying and reporting measurement results.
  9. Stop the swept sine measurement and clear the output and input tasks to release the device.

Steps to Implement or Execute Code

  1. Download the .zip and unzip the contents into one folder
  2. Run the .lvproj file and open the main.vi (Getting Started w Swept Sine Modified.vi)
  3. You may need to redirect LabVIEW to the correct file paths for some of the SubVIs
  4. Select excitation channel, stimulus channel and one or two response channels (to select more than one, browse for channels and ctrl+click)
  5. The program will plot both the Bode and Nyquist frequency responses

Requirements to Run

Software

LabVIEW 2011 or Later

Sound and Vibration Toolkit 2011

Hardware

USB 4431, PXI, or PCI 4461

Additional Images


Block Diagram

snippet.png


Eden S
Applications Engineer
National Instruments UK & Ireland
Comments
Member Kentmey
Member

Hi,

Thanks for the program, which has been quite useful. However, would you have any suggestions in case I need to move the code to 20 channels, and still have a compact code?

Kentmey
Contributors