Hello,
This is a pretty basic question, but I couldn't find a clear answer to this. We have a following code:
Several people were concerned that there's a race condition between setting the RTS and DTR state in the diagram. When I run the code debugging, the RTS state seems to be set first since the case statement doesn't get evaluated until the RTS state was done setting. A guy argued that the code debugging doesn't accurately represent the execution order of the code and therefore cannot be used to determine whether or not this is a race condition.
I actually hooked the hardware up to a logic analyzer and ran this 1,000 cycles and every single cycle seems to have RTS state set firsts, which seems consistent with what the debugger is doing.
My question is: can I trust the debugger code stepping? Additionally, does LabView evaluate the case statement at the same time as the items outside the case statement?
Any clarification would be greatly appreciated.
Thank You,
Patrick