
jschreven
Hello,
I am a university student working on a project that requires simple movement of two servos. I got your board because of its "plug-n-play" abilities. So far everything is working splendidly. Awesome product!
I am using bluetooth to communicate, but for my project I am writing other software using MATLAB. I have discovered that MATLAB is able to communicate with other programs if they are Windows "aware". E.g. I can use ActiveX Control to communicate with Excel because they are both Windows aware.
My question is if the ARC software is Windows aware? Or is there any documentation that I could sort through that might show the syntax needed to communicate directly between MATLAB and the board via bluetooth?
I realize this might be outside the scope of questions you usually answer. Any thoughts would be greatly appreciated.
Thanks!
@jschreven You bet! The EZ-SDK DLL is COM Enabled. That means you can include the DLL as a component in your project. You have full access to every public method within the DLL. I keep all methods public, so you have the most control
That's great! Thanks for the quick response!
I've got the connection worked out but my communication requests are timing out due to it not finding a terminator. What terminator does it use? E.g. cr/lf or lf.
what do you mean by terminator? a string terminator for what?
It's looking for either a string terminator or a line terminator. If I sent it a command like EZ_B.Servo.GetServoPosition(EZ_B.Servo.ServoPortEnum) I then have to "look-up" the information by reading the return info. It needs to know where the end of the string is.
I apologize if this doesn't make much sense. I might be asking the wrong questions.
Ah i see. That's an interesting question
You are asking it correctly. Because it has been years since i have used COM, i am unsure what the terminator would be. I do know that the response for that particular method is an Integer.
From what i remember, i think it's terminated with a \0 (null). But don't quote me on that.
I would imagine MatLab should take care of it - if it's not, then i'm surprised.