取消
显示结果 
搜索替代 
您的意思是: 

Running Two Velmex Motor Controllers Simultaneously

已解决!
转到解答

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!

 

 

0 项奖励
1 条消息(共 5 条)
2,807 次查看

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

0 项奖励
2 条消息(共 5 条)
2,799 次查看

Sorry.  I thought I had attached it to my post.

0 项奖励
3 条消息(共 5 条)
2,784 次查看
解答
已被主题作者 reese808 接受

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.

0 项奖励
4 条消息(共 5 条)
2,759 次查看

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.

0 项奖励
5 条消息(共 5 条)
2,747 次查看