LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help please : output of integration

Hello all, I am new to LabVIEW and would love some input from knowledgable folk.
 
I am trying to use a signal of integrated EMG to turn a switch. The problem is that I am inputing about 30 seconds of data taken at 2kHz (original data file) and run through at 200 samples at a rate of 1kHz (through the DAQ).  After the integration happens there are only around 250 data points, and they are not in an array.  So perhaps the problem is as simple as creating an array from the outputs form the integration?
 
I don't really know how to give you all the entire program, it is kind of ugly right now, and instead of reading the data file directly I run it out of a separate vi so in the future I can just take EMG from the board and run this directly. I have the integration happening to three stages in the processing of the original signal (no filter, 2nd Order bandpass BW filter, filtered and smoothed) and the best results come from the unfiltered signal (so far not terrible noise to filter out, i guess)
 
Thank you for any input, if you need any more info just let me know.
pmn
 
 
 
 
Download All
0 Kudos
Message 1 of 6
(3,248 Views)


BMEstudent wrote:
After the integration happens there are only around 250 data points, and they are not in an array.  So perhaps the problem is as simple as creating an array from the outputs form the integration?

You can built an array (A) in an autoindexing output tunnel or (B) in a shift register (or feedback node) using built array.
 
The rest of your description is not very clear to me.
0 Kudos
Message 2 of 6
(3,239 Views)
thanks altenbach
 
i'll try using these array building. And if I need more help will try to make more sense out of my project. Did you like my use of your screen picture vi???
 
pmn
0 Kudos
Message 3 of 6
(3,235 Views)
one more question: Why does the chart from the original signal plot with about 50000 data points and then after integration plot with only 250 data points?  Can I apply a higher rate output from the integration? or does it need 200 points of input for one output?
 
pmn
0 Kudos
Message 4 of 6
(3,209 Views)

A chart graphs  the number of points you feed it, up to the configured size of the history lenght.

If you feed it an array with each iteration, you add that many points/iteration. If you only feed it a single number, it only goes by one per iteration of the big loop.

0 Kudos
Message 5 of 6
(3,201 Views)
ok.  Maybe this will be of assistance, in assisting me...  The attached is a simpler BD that contains my problem.  Probe 20 is an array of 200 elements (every element changes each iteration of the big loop), Probe 21 has one value unique to each iteration of the big loop, and Probe 22 has one value at each iteration of the big loop as well (my problem).  Is there no way to have the array leaving the small loop have 200 elements? have I set up the small loop incorrectly?
 
i hope this is comprehensible.
 
pmn
0 Kudos
Message 6 of 6
(3,187 Views)