LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI USB-4431 DAQ issues

Here is an example of a code that works absolutely fine sometimes. i am saying sometimes is because of its failure to perform the task due to following reasons.

 

  1. Combination of IEPE and DC daq at high rates.
  2. An electrical trigger to start writing data to a txt file.

Let me explain the tasks defined in this VI.

  1. IEPE Impact force (AC device - AI0)
  2. DC displacement (DC Device - AI2)
  3. DC Trigger (DC Device - AI3)

Attached find snapshots of the three AI chanells defiend in MAX.

 

This VI is based on following loagic,

 

The VI Measure the IEPE impact force from a peizoelectric force sensor with internal IEPE provided by USB-4431. Also it measure the displacement from a linear potensiometer (0-5 VDC) and a electric switch with gives out 5 volts when activated. This electric switch (trigger) is used to trigger write data to a txt file for prescribed period of time (2 seconds). This help us reduce the file size and start writing data to txt file just before the impact.

 

I have attched the VI (LV-7.1) for your refereral. The VI starts and starts aquiring data at prescribed rate using producer-consumer architecture. User provides prescribed period for which to write data to a txt file (2 secs). As soon as the electric switch get activated the AI3 (trigger) get 5 volts (> 3.5 volts) and starts writing data to txt file for 2 seconds.

 

I am getting following problems with this setup

  1. The VI misses the impact peak altogether sometimes. Although there is a perfect impact on the force sensor. I dont see any peak. I guess the IEPE DAQ failure due to something and i am writing the data to txt file correctly.
  2. There is a strain noise in the data sometimes with ringing that gives me exceedingly high impact force (100k lbf). Although the force sensor is capable of 50k lbf ony. This noise is like several peaks of 100k lbf.

please review attached VI and snapshots of the MAX task to let me know if my VI structure has some problems.

 

Thanks

DAQ_G

0 Kudos
Message 1 of 1
(3,672 Views)