LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

find the starting point of wave in a waveform

Hello, my name is Titi. I am a beginner in labview programming. I have a problem when i try to find the value near the wave. I want to know how to find the starting point (they called onset time of waves).   as u see in this figure, there is a red signal. i want to detect the starting point (onset time) of three waves (black, purple and blue cursors). Thank you..  

0 Kudos
Message 1 of 7
(2,744 Views)

Hi titi,

 

as that red curve seems to stay at zero for the most time you could simply compare the red values with a certain limit. Whenever the limit is crossed the first time you will have the "start of the wave"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(2,726 Views)

yes, i have tried to compare the value, if the value greater than initial value, then i'll plot it as starting point.. but, i could not plot the cursor as in figure..

when i try to plot the position in the right place, i doesn't work, because always show Y value. I want to show X and Y value so that the value will move to the right position..exp1.jpg

Download All
0 Kudos
Message 3 of 7
(2,719 Views)

@ig31 wrote:

yes, i have tried to compare the value, if the value greater than initial value, then i'll plot it as starting point.. but, i could not plot the cursor as in figure..

when i try to plot the position in the right place, i doesn't work, because always show Y value. I want to show X and Y value so that the value will move to the right position..


Posting a code picture full of local variables, right-to-left wires, hidden code, and race conditions does not help us to solve the problem. Clean up the code and attach the actual VI and some data. Where are the terminals? Does it matter if the right and left disconnected code fragments execute in a certain order? If you autoindex on a FOR loop, you don't need to wire N. Why do you think you need to read the exact same local variable twice in parallel? Are you expecting different results? The "active cursor" and "cursor posx" property nodes can be combined into one.

 

I strongly recommend to do a few more beginner tutorial before proceeding.

0 Kudos
Message 4 of 7
(2,705 Views)

yes, my problem is my teacher assist me to modified the program from previous developer. so i have to continue his work.. can u give a simle example, how to do that and i may learn from your suggestion. Thank you

0 Kudos
Message 5 of 7
(2,681 Views)

Hi ig31,

 

Are you able to post your VI so that people on the forums can get a better idea of your code architecture? 

Adena L.
Technical Support Engineer
National Instruments
0 Kudos
Message 6 of 7
(2,652 Views)

yes, this is the vi file.. i want to detect the reg signal at the first waveform (sEMG). As u see, there are 2 signals in that waveform (blue and red signals).

0 Kudos
Message 7 of 7
(2,620 Views)