06-17-2008 11:00 AM - edited 06-17-2008 11:02 AM
06-17-2008 11:24 AM
gwhizz112 wrote:
i have a wave(like a sine) coming in on a graph and, when it goes by a certain point i what it to increment, and keep count how many time it goes by this point i have LED flash when thi happen but can not get to to count
Since you say that you figured a way to flash a LED everytime an event occurs, you should show us that code. It will help us better understand how things are.
Typically, you would just keep the count in a shift register (initialized with zero) and have a small case structure wired to your LED that has a +1 in the TRUE case and is wired across in the FALSE case.
06-18-2008 05:35 AM
06-18-2008 06:00 AM
06-18-2008 09:02 AM
You have not read what people have told you and looked at what people have shown you. You were told and shown to use a shift register. You did not do that. You "No. of Tests Failed" will never increment with each iteration. In any event you're doing exactly the same thing for each case, so what's the point of the case structure?
@gwhizz112 wrote:
this is what i have so far can get the counter to work
06-18-2008 12:46 PM
smercurio, you forgot the following as well.. 😉
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).