LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Record by press of button

Hello All,

t'is me again with yet another stupid question. (sorry but I'm a real bum at labview).

Dennis you wrote that :

If you want a time stamp only when you click a button, wire the button to a case statement or Select function so that only the True case has the time.


I created a loop using the "press button" boolean. and I wrapped both this loop and my program loop using a sequence loop.

However, I've encoutered 2 problems.

1. The button stays pressed after... kinda like a record button. Is it possible to have a click button?
2. Even when I press the button after the program has run once, it won't repeat... Do I have to add a 4th loop somewhere?
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 1 of 15
(3,639 Views)
Actually... if u put the boolean inside the primary loop itself everything still works out!

Now... what would be nice is a click button... Anyone know how that would work?

danke!
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 2 of 15
(3,631 Views)

@Aquaphire wrote:
1. The button stays pressed after... kinda like a record button. Is it possible to have a click button?
2. Even when I press the button after the program has run once, it won't repeat... Do I have to add a 4th loop somewhere?


(1) Right click on the button and select "Mechanical action..Latch when released". This will cause the button to reset whenever it is read by the code.
(2) Please attach an example. Similar problems can usually solved by simplifying the code, not by adding even more loops. 😉
0 Kudos
Message 3 of 15
(3,632 Views)
I have 2 loops for my program... but it doesnt work.

It keeps running automatically no matter wheather or not I run the program...

Trying to fix it 🙂
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 4 of 15
(3,623 Views)
Well... I just tried to put things together by attaching somethign like this:


Boolean (button) ----->| AND -------------- to my loop
TRUE ----------------->|

Problem is, it runs no matter whether its true or false...

How do you say: "Run only if true" in labview?

thanks
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 5 of 15
(3,618 Views)
Look at this modification. I think it does what you want with only one loop.

Lynn
0 Kudos
Message 6 of 15
(3,617 Views)
Can anyone help me save that VI into a labview 6.1 version please?

thanks

Ben
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 7 of 15
(3,615 Views)
Here is a version in 6.0. (I do not have 6.1 available.) I did not have your modified write to spreadsheet VI so I used the standard one and of course it does not like the string array input. You can substitute your VI to fix it.

Lynn
0 Kudos
Message 8 of 15
(3,604 Views)
Hey john.

It's not exactly what I was looking for...


What I would have liked would be 1 button, instead of 2... since now, you don't really have time to click on the stop before it tries to start again. 😛

Second, I don't want the program to exit after it runs one loop... meaning if u set "If False then exit" the whole program terminates and u can't loop it again by "pressing the button"

I don't know if you really understood my explanation....
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 9 of 15
(3,602 Views)
Hey guys, here's my new VI.


Still won't work though... I was wondering if i couuld add somethign equivalent to an "IF" statement so that i get:

If true, run the loop
else wait.
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 10 of 15
(3,597 Views)