LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Error -1073807194 When trying to connect to Dynamixel MX-28

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.

0 Kudos
Message 1 of 19
(6,343 Views)

I don't see the VISA serial port being initialized anywhere.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 19
(6,333 Views)

Ok. How do you do that?

I didn't realize that was needed...

0 Kudos
Message 3 of 19
(6,326 Views)

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...  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 19
(6,323 Views)

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?

0 Kudos
Message 5 of 19
(6,313 Views)

@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?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 19
(6,291 Views)

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?

0 Kudos
Message 7 of 19
(6,286 Views)

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

 

🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 19
(6,282 Views)

Ok. That's helpful. Thank you.

I'll check those out and post back here after.

0 Kudos
Message 9 of 19
(6,278 Views)

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.

0 Kudos
Message 10 of 19
(6,268 Views)