LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Record by press of button

Aquaphire,

The example that johnsold gave you appears to be the approach that you need with only one modification. The mechanical action of the write button needs to be changed to "latch when released" as suggested by altenbach. If you do this every time you press the write button it will execute the write routine one time. Since the button reverts back to false the next time through the loop it will just wait 200 ms and loop again. It will write again only when you press the write button. It will continue doing this until you press the stop button. You should always include a way to exit your program without using the Abort button (the Stop sign on the tool bar). The abort button is intended for use during development, not at runtime. This is why johnsold used two buttons.
0 Kudos
Message 11 of 15
(914 Views)
NICE!!

THANKS GUYS 🙂

amazing support 🙂
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 12 of 15
(910 Views)
For those who want the "answer" 😉
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 13 of 15
(908 Views)
I can't save to 6.1 but here is a picture of the diagram. the trick is to put your file open and close outside of the loop and now only when you click the timestamp button it will log. then it will give you time to stop the program whenever you want

the "magic" vi that i used was the " array to spreadsheet string" in the string menu.

let me know if this helps

-James
- James

Using LV 2012 on Windows 7 64 bit
0 Kudos
Message 14 of 15
(897 Views)
Hi
I am facing one problem of similar kind. I want the button to come to default position after pressing. But i am using the refrence property of the button it does not allow to use Latch property. If i make it work with any of the switch property it sends more than one "true" value at the single time. What is the way to make the button work like Latch when released with refrence property too.
Thanks for your help.
Rikki
0 Kudos
Message 15 of 15
(811 Views)