09-07-2017 07:34 PM
Dear friends,
I need some help here, I tried many ways, but I can not find out how to do it. Please help.
My target: 1st LED (in 1st state machine) Blinking all the time (never stop) with very slow speed(1000ms), 2nd LED(in 2nd state machine) will blink kinda slow (500ms) if 1st LED is off OR will blink kinda fast(50ms) if 1st LED is on.
Important notes:
1. I do need to KEEP those 2 state machine(SM). Especially, do NOT change the Enum of both SM. I am doing this for much much bigger project, in that project, there are 2 SM. That's why I make 2 SM in here. 2nd SM will be updated again and again (by T or F) from 1st SM (1st SM will give out T or F again and again to 2nd).
2. Both SM should be keep running all the time. In other words, 2 LED should be blinking all the time, just 2nd one with different blinking speed under condition of 1st one one or off.
Please check the attached VI. Could you please just modify this VI and upload it for me? I know it sounds I am asking solution for a homework. But this is not homework and I already spent almost 2 day on this 😞
The VI is ok to run, but 2nd LED will not be blinking in different speed, because the green wire cannot be updated until 1st LED stop (I do need both SM keep running).
Thank you so much for your time and kindness. Thank you.
09-07-2017 07:46 PM
Move that boolean and case structure inside the loop so that it can be read every iteration.
09-07-2017 08:43 PM
I think I tried before, it wont work:( Could you try that for me? Thank you in advance
09-07-2017 10:02 PM
It worked for me. Boolean 2 blinks superfast when Boolean 1 is on, much slower when Boolean 1 is off.
Try again. If you still have a problem, attach your modified VI.
09-08-2017 10:39 AM
oh, it works. I do think I tried this....... but how comes it was not working. Thank you again for your help.