06-12-2014 03:39 PM
Hi,
I've been using a polarization controller which is only in fact a step motor. I control this step motor via a standard EiBotBoard. I've been able to control it with Labview through NI-VISA and it works. I've also created a loop including the initialization processes and some other commands to obtain a specific set of variables in term of polarization. I execute my loop once and everything is alright but when I try to do it for the second time, it fails to complete mid-step. At that time, it seems that labview is losing communication with my EiBotBoard and it seems that the problem is coming from Labview since every other program I use with my board works great. What bothers me here is that when I close Labview, the board immidiately restarts and works fine.
Just as additionnal information, my loop contains three Instrument I/O assistants on which I ask to excute a single command 2500 times. If somebody wishes to see it, I can upload a picture of my block diagram.
I hope somebody can help me find a way to solve my problem,
Regards,
Marc-Daniel Gagnon
Solved! Go to Solution.
06-12-2014 07:41 PM
Is there a reason you cannot upload the VI itself?
I always say that a picture is worth a thousand words, but a VI is worth a thousand pictures! 🙂
06-12-2014 08:46 PM
06-13-2014 09:05 AM
Here is a view of my current VI. It is very simplistic and it is basically a test to see if we were to be able to generate a complete scan of movement from a step motor. I'm open to suggestion to make it better if ever you have some. My motor is connected by USB but I had to install some .INF files since the board has to be controlled by port COM so basically my USB input simulates COM port commands.
The command I send to the Instrument assistant is just a sequence of "Write" on the device with EBB commands that the guy who sold me the motor has integrated of the board. In other words, it just finds the COM4 and then writes a bunch of precise commands.
As I said in my first post, it works real great the first time I execute and the seconde time it always fails to keep the connection until the movements are done.
Appreciating the fast reponses,
Marc-Daniel Gagnon
06-13-2014 01:57 PM