07-15-2016 07:42 AM - edited 07-15-2016 07:43 AM
This code should help you get just the peak portion of the waveform (which is apparently the only part you care about.
EDIT: if you do use this snippet, I just realized I wired the waveform straight through in the FALSE case. It should be an empty waveform constant wired up to the output tunnel.
07-15-2016 08:23 AM
Hey Guys,
I don't really understand why we have to change the code that much? Logging only the data I'm interested in is already working, or am I doing it wrong?
Palanivel is your suggestion for automatically changing the group name not nearly the same as the one from crossrulz before? I think that will lead to the same problem. The name will be change every time a true value comes in, which happens with every value that is higher then the limit and not just once when the signal passes the limit.
07-15-2016 08:28 AM
You are absloutely right, i have did slight modification in the code which crossruls suggested. Based on Crossruls earlier code the Name will be incremeneted for every true value. but in the later post i suggested in such a way that the name will be incremented only when the sine wave reacjh its peak which is your requirement.
Later Crossruls posted a code to find the peak. Just Try to Combine the Logics by which you can also explore much and the solution also will be arrived.
07-15-2016 08:39 AM
Okay know I understand it, thank you.
The problem is that I am just using the sine wave to test my VI. The real signal comes from a cutting process and will not have a defined peak. I just want to acquire all data points from the signal that are above a defined limit. I have not imagined that this will make a difference. I am very sorry for not writing this before :(.
Maybe this sketch will make the task more clear.
07-15-2016 11:18 AM
@ZMK16 wrote:I just want to acquire all data points from the signal that are above a defined limit.
What my last piece of code that I posted does. I was just to get the portion of the waveform that was above your limits. So then you just log those.
07-15-2016 12:17 PM