03-07-2013 08:44 AM
Hi all,
Looking to find the zero crossing points of a waveform. There are examples of this code but none of them i find do quite what i want.
I need the zero crossing points and also the direction of the crossing (negative going crossing or positive going crossing).
i am trying to get one array containing all the crossing points and one boolean array containing the direction information relating to that corssing. E.g True = positive crossing...etc.
Does anyone have an idea how i can get the direction information. Please see my code.
Regards
03-07-2013 08:57 AM
Search for the VI "Boolean Crossing Pt by Pt". It can detect True to False, False to True, or changes in either direction. Couple that with a greater than zero comparison, you should be good to go.
03-07-2013 12:17 PM
The boolean crossing Vi does detect a crossing but it does not tell you the direction, only that one has occured when the direction input is wired as both directions.
03-07-2013 12:31 PM - edited 03-07-2013 12:36 PM
@qwerty257 wrote:
The boolean crossing Vi does detect a crossing but it does not tell you the direction, only that one has occured when the direction input is wired as both directions.
use the zero crossing pt by pt.vi....check out the output bools?
03-07-2013 01:38 PM
@qwerty257 wrote:
The boolean crossing Vi does detect a crossing but it does not tell you the direction, only that one has occured when the direction input is wired as both directions.
Use two. One for each direction.
EDIT: I like Apok's zero crossing pt. by pt. I hadn't come across that one before. I had remembered the boolean one because it has been mentioned in several threads recently.;