LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure auto and manul mode

Hello all 

 

I trying to make automatic event in my code but some how is not working please have look.

task is :

in string array i have "manual" and "auto" strings when auto string is present event structure should be triggered automatically when manual string is present the event structure should be triggered by 'next step' button. 

 

0 Kudos
Message 1 of 3
(2,671 Views)

Why Event?

 

see code

automan.png

 

If you need notify change to Event structure, you need val(signaling) property (see bottom line)

0 Kudos
Message 2 of 3
(2,657 Views)

Your code has many problems.

  1. You are using the event structure incorrectly. (Timeout not needed)
  2. You have a race condition with the "mode" indicator.
  3. Too many sequence structures (you have one!)
  4. All buttons should be handled in the event structure

But the big one is number 2. That is why it isn't working as you expected. The problem is that the mode indicator is read in parallel with the execution of the event structure - which is where the mode indicator value is set. Consequently, the indicator is read before it is set. Dataflow!

 

Recommend that you take a LV training class, live or online.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,652 Views)