Hi,
I am trying to synchronize the movement of two stepper motors which are each connected to a Velmex controller. Currently, I am having difficulty with the second while loop even though it is identical to the first while loop. If anyone could help me troubleshoot my VI, I would really appreciate it. Thanks!
已解决! 转到解答。
How can we help you with a VI that we can't see? Posting your VI would really help us (unless you want us to guess). For best help (for us, which we can then pass back to you), post the actual VI, not a picture of it.
Bob Schor
Sorry. I thought I had attached it to my post.
I don't have the drivers installed so I can't be sure, but it looks like every frame calls the same VI, "VXMdriverLV8.vi", and if a VI isn't reentrant it can't be called twice at the same time.
That's likely the cause. Or, even if the subVI is reentrant, it could be that it calls sub-subVIs that aren't and it gets stuck on that.
I don't like how you have a state machine built inside of the run button event of the event structure. That means you need to press run in order for it to move to the next step of the state machine.