05-03-2024 11:33 AM
Hello, wanna ask something about the variable.
This is the sample program i made, the indicator show 0 when i didnt press the pushbutton and show 1 when i press it. however, it turn back to 0 when i release it, is there anyway to keep it as 1 when i release it and the value will keep increasing when i press it?
05-03-2024 11:50 AM - edited 05-03-2024 11:58 AM
Attaching an image does not tell us the entire story. Please attach your VI.
05-03-2024 11:56 AM
05-03-2024 03:33 PM
IF you go to the front panel and right click on the boolean control then select MECHANICAL ACTION there are a few options
To do what you want you must select SWITCH WHEN PRESSED
05-03-2024 08:05 PM - edited 05-03-2024 08:37 PM
@LVNinja wrote:
To do what you want you must select SWITCH WHEN PRESSED
... But they said: "and the value will keep increasing when i press it?" That is " ... until released".
Nothing will be increasing without a shift register or feedback node and proper top-level architecture. 🙂
Of course it could also mean that it should increment by one for each press, in that case latch action would be correct
05-04-2024 03:06 AM
Hi, I'm sorry for not attaching VI
1. Yes, Im using continuous run mode, because i dont want the program to end in one run.
2. the mechanical action is switch when press
3. I put it somewhere else, it is not connected to anything. but the result will be the same even if i use the indicator.
05-04-2024 03:07 AM
it is