LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I design an arithmometer?

In my VI , I need an arithmometer to count the times of True or False from a comparison. As the true continuously appear three times , the data will be recorded , but if one false appear , the times will to be zero . The comparison will be repeated until the times to be 3 . Then how can I design this arithmometer?
 
Thanks a lot ! 
0 Kudos
Message 1 of 3
(2,762 Views)
Hello:

I'm not sure if I understood exactly what you need. I've made a simple VI that does the following:


- Compares two numbers whenever you press the Compare button
- If the comparison is true, it increments a counter by one.
- If three straight comparisons are true, it shows a dialog (this is a dummy behavior, do what you need here), and resets the count
- Whenever a comparison is false, it resets the count

I hope this helps you to finish your program

If you need further asistance don't hesitate to post.

Robst



Robst - CLD

Using LabVIEW since version 7.0


Message 2 of 3
(2,735 Views)
Is the comparision a hardward you mentioned? What kind of signal does it output? The digitial or analog? If it's hardware, you can use the DAQ device(AI or DI) to capture the siganl. And execute the algorithm in software.
0 Kudos
Message 3 of 3
(2,720 Views)