LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Have trouble increment

It's in the Waveform section of the Functions Palette.  See image below:
 
 
[EDIT_PORTION_START]
Oppss.. Wooohhh..  That was weird..
I submit and see the image right away...
 
Guess smercurio beat me to the post..
 
Oh well.. here's my picture... same place.. 
[EDIT_PORTION_END]


Message Edited by JoeLabView on 06-17-2008 12:02 PM
0 Kudos
Message 11 of 16
(821 Views)


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

If your sine is just an array, you don't need to do all that "waveform acrobatics". Still you really should define the problem a bit better.
  • Do you have the full sine data available from the beginning or do you want to analyze it as it arrives point by point?
  • I assume you want to count how many times it crosses a threshold. Do you want to count both, when it crosses low->high and high->low, or just one of the two?
  • How about noise. Do you need to filter? If there is noise, it could cross a few times in a row.

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.

0 Kudos
Message 12 of 16
(818 Views)
 this is what i have so far can get the counter to work
0 Kudos
Message 13 of 16
(793 Views)
 this is what i have so far can get the counter to work, i have it reading in signal for the for the ni DQA , and have it going on a graph and what it to be able to count the number of time it goes by 0.5 on the graph

0 Kudos
Message 14 of 16
(790 Views)

@gwhizz112 wrote:
 this is what i have so far can get the counter to work

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?

At this point I have to say that you need to get some training in LabVIEW coding, and perhaps some training in programming in general. To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
Message 15 of 16
(777 Views)

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).

0 Kudos
Message 16 of 16
(766 Views)