Project Objective:
A.) detect activation of small muscle group
B.) count # of activations in 3 second period
C.) display counted # after each 3 second period
The first part is where my problem lies.
System description:
1) using an analog front end to filter raw EMG signal from biopolar surface electrodes and producing one analog output. 2) That one output goes to AI 1+ on the myDAQ (analog in 1), AI 1- is connected to ground. 3) daq assistant brings data into labview. 4) two additional digital filters refine signal. 5) amplitude, level, and tone measurement express Vi's used (these Vi's produce values that change an order of magnitude in response to a muscle activation) this is where the problem sets in. 6) the rest of the code is different attempts to use threshold detection to detect when and how many times the muscle has been activated.
My Problem:
the VI's explained in step 5 above all generate a single value at time zero or something like that. Their waveforms are consistently centered at t=0. This could mean time data is not included after the measurement is performed by the VI. I get ERROR code 20013 which can be related to the number of inputs being less than the width (my width is 1 for each detector). I tried building arrays to store the data and using different types of threshold detectors, but nothing worked.
I think maybe a shift register might work, but then I would have to change my sampling setting from continuous and it would get to complicated for my level of expertise. It would also make the loop in a loop I am planning on using for part B and C from above very confusing.
Any fixes for my code or suggestions on a new method would be welcome.