LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean enabling on front panel, but not in the block diagram

Solved!
Go to solution

I have a boolean controller on the front panel turning on but it is not activating in the block diagram. The Boolean is inside an event structure. I have uploaded my VI for review

 

Update: clicking any boolean causes my VI to slow way down

0 Kudos
Message 1 of 4
(942 Views)
  1. Throw that away.
  2. Learn how to properly code in LabVIEW.
  3. Start over.
"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 4
(918 Views)

Can you help? I need constructive criticism 

0 Kudos
Message 3 of 4
(902 Views)
Solution
Accepted by Kerbies

As some more constructive criticism - I suspect you have mis-understood:

 

  1. Data flow. LabVIEW forces you to think differently to how you may be used to programming in a single-statement, imperative way. It makes you instead think about data and how it is used/transformed within your application as it runs. A function ("node") only runs once all the data is available for it to execute. This is more closely aligned with Functional Programming. https://www.ni.com/getting-started/labview-basics/dataflow
  2. How event structures work. Event structures execute exactly one waiting event at a time, then exit. To handle multiple events, you need to house them in a while loop or similar. https://zone.ni.com/reference/en-XX/help/371361R-01/glang/event_structure/

It would be worthwhile for you to go through the LabVIEW tutorials starting here: https://www.ni.com/getting-started/labview-basics/

Message 4 of 4
(897 Views)