LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i add array element after acquiring 8 samples from pulsatile signals and display it?

Hello, LabVIEW Experts,

I'd like to do the following with the attached VI:
1)enter raw data(sampling frequency 333K/sec and 333K samples) into array1
2)the rising edge of the pusatile input triggers/starts the analog input(the first 8 points)
3)the 8 data points are appended/inserted into array2
4)front panel displays array and waveform of both array1 and array2

I know what to do in other langauges but i am having a hard time doing it with LabVIEW.

Please advise.

Thank you.

CK
0 Kudos
Message 1 of 4
(2,583 Views)
Hi CK-
 
The easiest method I can think of to perform this function is to sort through the array of data as it comes in and pull the necessary points.  I have attached a short example that shows how to graph the raw data and also to check two conditions:
  1. Checking through the array, always check to see if one element in the array is greater than the previous (using shift register to store data)
  2. Checking each point, always check to see if it exceeds the "Trigger Lvl" value

If both of these conditions are met (hence the AND "gate"), we break the While loop and save the iteration value.  We then grab values from the original array starting at this index and take "Length" number of elements.  Finally we present the array subset similarly to the original data.  This example uses a simulated square wave with noise, but reading an array from your DAQ operation should allow you to achieve the same results.

Hopefully this helps-

Tom W
National Instruments
Message 2 of 4
(2,560 Views)
thank you tom, you are very helpful. 😃
0 Kudos
Message 3 of 4
(2,545 Views)

Hi CK-

I'm glad I could helpSmiley Happy

Tom W
National Instruments
0 Kudos
Message 4 of 4
(2,536 Views)