04-08-2013 01:20 PM
VISA Error -1073807194 When trying to connect to Dynamixel MX-28
I'm trying to connect to a Dynamixel MX-28 and receive the above error when I run my VI.
The COM ports detected by the VI match the ones that I see in Windows 7 Device Manager.
Any other ideas?
I've attached the code I'm running below.
04-08-2013 02:33 PM
I don't see the VISA serial port being initialized anywhere.
04-08-2013 04:12 PM
Ok. How do you do that?
I didn't realize that was needed...
04-08-2013 04:40 PM
To set the VISA serial parameters, use VISA configure serial port located in... ta-da - the Instrument I/O --> Serial palette. Just where'd you'd think to look for a VISA function, right? Sheesh... 😉
04-08-2013 09:27 PM
I had no idea, actually. I'm just learning Labview (and was handed this code by the previous guy). I appreciate the help.
I'm guessing I need to replace the "VISA resource name" and "VISA resource name out" blocks (that are currently in the above linked VI) with the "VISA configure serial port" block?
In a related question, what would be the best way to expand this so that a larger number of servos could be controlled at once?
Would I just make multiple copies of the current blocks (with several position knobs on the front panel)? Would that make the most sense?
04-09-2013 10:18 AM
@slow wrote:
I had no idea, actually. I'm just learning Labview (and was handed this code by the previous guy). I appreciate the help.
I'm guessing I need to replace the "VISA resource name" and "VISA resource name out" blocks (that are currently in the above linked VI) with the "VISA configure serial port" block?In a related question, what would be the best way to expand this so that a larger number of servos could be controlled at once?
Would I just make multiple copies of the current blocks (with several position knobs on the front panel)? Would that make the most sense?
LOL I was making fun of the unusual place that NI put the VISA serial config, not being sarcastic about you not finding it. Sorry about that. 😉
The config will go right before your write. If you turn on context help (the little ? in the upper right corner) and mouse over the various things on the block diagram and front panel, you'll see how to use them. 🙂
Not really sure about a desing suggestion. An array of position knobs to be indexed accordingly?
04-09-2013 10:57 AM
Ha. Yeah, sometimes it's hard to tell when you're not talking to someone in person. 🙂
Ok. So, I know this isn't right (since I'm getting an error). There is an error stating that the "input parameter is invalid". This one is making me scratch my head.
I have a baud rate field wired in... and the number of data bits (although I think I really need 16).
Um, why am I still getting that error?
04-09-2013 11:43 AM
I think maybe this link might help: http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Recover-from-VISA-error-1073807194-after-inst....
It discusses closing VISA sessions. Hopefully that helps. Besides explicitly closing your VISA session, I would recommend these links for learning basic LabVIEW "best practices."
LabVIEW Introduction Course - Three Hours
or
LabVIEW Introduction Course - Six Hours
🙂
04-09-2013 12:25 PM
Ok. That's helpful. Thank you.
I'll check those out and post back here after.
04-09-2013 10:17 PM - edited 04-09-2013 10:18 PM
I inserted the "Dynamixal Motor Initialize" block. It takes the place of the VISA Initialize. This seems to work. Thank you.
Now on to try and figure out the best way to control all of the servos at once... via simulated bio-signals.