03-25-2013 02:55 PM
You will most likely run into issues with your VISA Write. You are trying to run them in parallel but they are all communicating with the same device. You should send the commands out serially. Use the Error Out of the VISA Write as the Error In to the next one. This will ensure the writes happen in serial. Otherwise you will get a conflict or garbled messages.
03-25-2013 03:32 PM - edited 03-25-2013 03:37 PM
Aaah, I see now why it was sometimes jittery and it wasn't working properly. Like that?
03-25-2013 03:42 PM
I would consider creating a subVI for your data write. The subVI would take the VISA resource, the location value (the value that indicates which motor), the motor values and the error in. It would output the VISA resource and teh error out. Your block diagram would look cleaner and if you needed to make a change to the communications you would only need to do it in one place rather than update 4 copies of the code. You should also consider renaming your controls and indicators to meaningful names. String 3 is not very descriptive.
03-25-2013 03:57 PM
I see. I'll go about that once everything is set up and works. Thanks for all the good advice Mark. I'll come back if there's other things.