05-18-2012 10:25 AM
OK I am new to lab view so please be patient with me. I have a need for a stop watch that is triggered to start when two voltage values differ by more than 0.110V and then stop counting when they return to within 0.110v my goal is to capture the total amount of time the two voltages differ and record it along with the rest of the data is this possible and how would I do it? Thanks I am running 8.5
05-18-2012 10:38 AM
You need a function that will return the current time. You need a while loop, probably some shift registers also.
You need conditional statements and some case structures.
Try to put something together as a VI. Try it out. When you get stuck, then post back with a question explaining what you want it to do and how your attempt is not doing it.
05-18-2012 12:45 PM
thanks for the quick response but thats not really enough info to help me as I am very very unfamiliar with lab view and have only been using it for a few days(mainly just plugging in copied sections) so hopefully someone can give me a little more help. But the good news is I am now looking into taking one of the Lab view courses but that probably won't help me with this problem this week. thanks again for your help
05-18-2012 12:59 PM
@danger831 wrote:
thanks for the quick response but thats not really enough info to help me as I am very very unfamiliar with lab view and have only been using it for a few days(mainly just plugging in copied sections) so hopefully someone can give me a little more help. But the good news is I am now looking into taking one of the Lab view courses but that probably won't help me with this problem this week. thanks again for your help
For starters, try to write the name correctly. It is LabVIEW, not lab view.
Seriously though, your best way of learning to is try some things yourself first. Look through the examples that ship with LabVIEW for the components Raven suggested (while loops, shift registers, etc.) We could give you a working example but you will learn far more by trying things for yourself. As suggested, try a few things and then post what you have done and what you are having trouble with. From there we can answer your questions rather than just do it for you.
05-18-2012 04:08 PM
I would suggest you do a search of the forum for "stopwatch." But here is a link to get you started. There are many others, you just have to search the forum.
http://forums.ni.com/t5/LabVIEW/boolean-start-reset-stopwatch/m-p/1390582/highlight/true#M544285
05-18-2012 04:54 PM
Since you've only been using it for a few days, you might not have had a chance to view the tutorials yet.
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours