05-05-2010 05:58 AM
I need a high signal that is triggered high by four different Boolean controls that are "Latch when released" and triggered low by four other Boolean controls that are "Latch when released" is pressed. Can this be done and how?
Thanks in advance.
Solved! Go to Solution.
05-05-2010 06:13 AM
Put the boolean buttons on the FP and select what behaviour you want by right clicking on the boolean and selecting the action from the mechanical action option popped up.
Then the logic part would be to configure event structure for the required boolean
Guru
05-05-2010 06:33 AM
The boolean buttons nead to be an "OK" button that is "Latch when released" so I can not change the behaviour of the button. What I need is something that "remembers" which has been pressed last of the eight buttons. Theese eight buttons is divided in to two groups where four of them triggeres a high signal and the other four triggeres a low signal.
05-05-2010 06:35 AM
Hi Jeppe Mortensen,
you can store this information in a shift register. You can read the label of the pressed button and store it. Depending on your groups you can then decide the what will be done in the trigger case or where ever you check this.
Mike
05-05-2010 07:02 AM
Thanks for the quick response. But I don't now how to use this shift register?
05-05-2010 07:12 AM
Hi Jeppe Mortensen,
see the attached picture. If you have the value in the shiftregister, then you can work with it in the timeout case to react on the different selections.
Mike
05-05-2010 09:38 AM
Hi Jeppe,
You can achieve this using the 'Boolean Latch' vi i wrote. I will attach it and also a demo of how it can be used in your case:
ignore the panel reference that is added to the snippet, think this is just a bug of labview. The latch sub vi shown on the demo will latch the high outputs. The low buttons will reset the latch.
Will post all needed code below,
Rgs,
Lucither
05-06-2010 04:22 AM
Hi Jeppe,
Just realised that there is no need for the 4 individual 'Latch' vi's just need the one:
Or even better would be if you used clusters:
Rgs,
Lucither