04-05-2023 12:55 PM
I am very beginner to labview and i want to creat variable which get value 1 when input get 1 and not change when input 0 .
Solved! Go to Solution.
04-05-2023 01:35 PM
Hi Chathuac,
@Chathuac98 wrote:
I am very beginner to labview
As a "very beginner" you should start with all those Training resources offered at the top of the LabVIEW board…
@Chathuac98 wrote:
i want to creat variable which get value 1 when input get 1 and not change when input 0 .
All you need is a while loop (as your input may vary over time), a shift register (your "variable", as LabVIEW uses wires and shift registers instead of "variables") and a case structure (input may be 1 or 0)…
What have you tried and where are you stuck?
04-05-2023 01:46 PM - edited 04-07-2023 09:51 AM
@Chathuac98 wrote:
I am very beginner to labview and i want to creat variable which get value 1 when input get 1 and not change when input 0 .
In LabVIEW, the wire is the variable., you can branch the wire to an indicator if you want to also display it to the user. 😄
If you simply don't want to update an indicator, place it in a case structure and execute an empty case if zero happens, else update the indicator. If you also need the value elsewhere, keep it in a shift register or feedback node across iterations.
In addition, you really need to define the problem better.
04-06-2023 02:54 AM
@Chathuac98 wrote:
I am very beginner to labview and i want to creat variable which get value 1 when input get 1 and not change when input 0 .
So, it'll be Off until activated and then always True. A shift register and an Or can fix that.