LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger high/low signal

Solved!
Go to solution

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.

0 Kudos
Message 1 of 8
(4,300 Views)

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

Regards
Guru (CLA)
0 Kudos
Message 2 of 8
(4,295 Views)

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.

0 Kudos
Message 3 of 8
(4,288 Views)

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

0 Kudos
Message 4 of 8
(4,283 Views)

Thanks for the quick response. But I don't now how to use this shift register?

0 Kudos
Message 5 of 8
(4,270 Views)

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

0 Kudos
Message 6 of 8
(4,266 Views)

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:

 

High low triggers snippet.png

 

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

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
0 Kudos
Message 7 of 8
(4,248 Views)
Solution
Accepted by topic author Jeppe Mortensen

Hi Jeppe,

 

Just realised that there is no need for the 4 individual 'Latch' vi's just need the one:

 

High low trigger buttons.png

 

Or even better would be if you used clusters:

 

High low trigger cluster.png

 

Rgs,

 

Lucither

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
Message 8 of 8
(4,214 Views)