LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

push button true and release

HI,

I need to create a push button which command (true)a case structure : In this case structure I have an "Analog 2D DBL NSamp NChannel" which is doing an acquisition according to Nb of samples : What I what is that after this acquisition is completed, the pushbutton should be set automatically to false ; Do someone has already done this ?,

Thanks for the help
P,
0 Kudos
Message 1 of 8
(3,884 Views)
Hello,

Attached is an VI in LabView 7.1 with a solution. Hope it helps you.
If you choose the mechanical action of the type switch when pressed, then the value is automatically modified from True to False and viceversa ...
0 Kudos
Message 2 of 8
(3,879 Views)
You can also try this if you don't want to use Oriana solution: put a sequence structure into this case, the first sequence is the acquisition and the second sequence is a property node linked to the button, and has the property value -> then wire a constant to it (false ofcource).


See attached picture for basic overview

Message Edited by Tristan on 04-26-2005 12:50 PM

0 Kudos
Message 3 of 8
(3,878 Views)
Trsitan's solution is a copy of my solution ... I am advising him to increase his observation skills.
0 Kudos
Message 4 of 8
(3,871 Views)
Oriana, since this isn't the first time, I must ask: please stop attacking the people in the forum. There is no reason to say that someone's solution is much less better than your own or that they should be more observant.
For one thing, the way people work here, it's quite common to find people posting the same answers within a few minutes of each other, because when they started their response, the other answer wasn't there yet. I've had cases where people said exactly the same thing I said even days later. There is no reason to call further attention to it. Just let it be.
Additionally, if you have criticism on someone's code, it should be well founded. For example, there is no reason to criticize someone over using Build Array in a loop if the fact that they used it does not affect the solution for the problem. Sometimes, code written fast has some bugs in it.
Just like you, most other people here do this voluntarily, and there is no reason to be unkind to them. No one is trying to steal your glory or to compete with you.
Thank you for your attention and have a nice day.

___________________
Try to take over the world!
Message 5 of 8
(3,861 Views)
I think you take it too personally ...

I agree that we should encourage each other and especially to help as much as our knowledge let us doing that. Also I was doing that as often I can ...

If you are angry in the name of his ... please accept my apologize.
0 Kudos
Message 6 of 8
(3,849 Views)
like tst said i was busy creating this example for him, and i saw your solution when i submitted. I don't post my solutions for the glory or whatever, i just post it because i like to help people, and it makes me better in programming in general. Because each with each new problem i learn a bit more. I hope you understand, and ofcource the appologies are accepted.

Tristan

Message Edited by Tristan on 04-26-2005 03:38 PM

Message 7 of 8
(3,841 Views)
I am not angry, nor am I taking this personally.
There are 2 reasons I dislike this:
1. I dislike "loud" behavior in general.
2. Things like this can cause other people to be hurt (and not come back) or to get wrong information (like the other thread I mentioned where you said the solution was inefficient and then someone came and said your solution was also inefficient).
We should all know that we have limits and that we can be wrong. There is no reason to point fingers at one another. If you follow some of the debates here, you will see that there is some aggression and competitiveness, but that's all in good spirit and the people involved in it know that.

___________________
Try to take over the world!
0 Kudos
Message 8 of 8
(3,826 Views)