02-26-2010 12:11 AM
02-26-2010 11:27 AM
02-26-2010 02:36 PM
Assuming you are talking about this , then of course. They are exactly the same on the block diagram which you should have been able to check yourself. The difference is totally cosmetic.
02-27-2010 08:21 AM
02-27-2010 08:30 AM
First, be careful with your terminology. Something that is manually on and off would be a toggle switch. What you are describing is actually called a momentary switch.
If you want something that will pop back up automatically you need to set the mechanical action of the switch to Latched when released. The button will stay down once you press and release, and will pop back up automatically once LabVIEW reads its value.
This is basic LabVIEW knowledge. I would recommend looking at the online LabVIEW tutorials:
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
02-27-2010 03:30 PM
03-03-2010 01:14 AM
The Prolem is I am not able to explain the problem very well.
But I will try again.
In My hardware..Parallel port hardware is having 8 LEDs (D0 to D7).
and 5 Status port (In the form of Push Buttons)
Basically I want to access those push buttons(Status port) Like the toggle button.
In the sense that... if i press one push button it becomes 0 and the moment I release that button it comes back to its intially position ie 1. since it is a push button. that means i need to keep holding the button till my work is not done and then release the button.
But in my hardware I cannot change those push buttons with toggle button so that it remains 0 if i press once and if I press again it should go 1.
So basically I need to program in such a way that My push button acts like toggle button.
Pls don't suggest me to use boolean buttons I cannot do that. I have to access only from hardware.
03-03-2010 09:33 AM - edited 03-03-2010 09:38 AM
I think I understand. See the attached code.
Since I don't have hardware, I simulated it with a boolean button that is set for Switch until released, so it acts like a momentary hardware push button. Replace that control with your Read DAQ function.
I use one shift register to remember its last state and special boolean logic so that it only acts on the transition from false to true. With that it toggles your output boolean using exclusive OR logic. That is also maintained in a shift register to remember the current state of your output line.
There may be other ways to implement this logic and even combine the boolean operations a bit more, but this seems to work the way I now understand what you are trying to do.