如何在ARDUINO uno R3中读取XML文件以进行线性位置电机控制? [英] How to read a XML file in ARDUINO uno R3 for linear position motor control?

查看:259
本文介绍了如何在ARDUINO uno R3中读取XML文件以进行线性位置电机控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ARDUINO uno R3中读取XML文件以进行线性位置电机控制?

我已经在Visual Studio中为电机控制生成了一个xml文件.我必须通过Arduino控制电机.如何读取xml文件值



How to read a XML file in ARDUINO uno R3 for linear position motor control?

I have generated a xml file in visual studio for the motor control. i have to control the motor through Arduino. How can i read the xml file values



for example <direction> 10 </direction>
    <speed> 120 </speed> so on....in Arduino



我是新来的,如果有人帮助或举一个例子或如何进行,那将会有所帮助.谢谢.

我尝试过的事情:

我尝试在arduino中给出直接值,因为我对此不太熟悉,我也不知道如何处理



I am new it would helpful if someone helps or give an example or how to proceed. Thank you.

What I have tried:

i have tried to give the direct values in arduino since i ma not familiar with this i did not have any idea how to approach

推荐答案

为什么不建议这样做,我认为,要为Arduino创建一个XML解析器.
我想您应该走相反的方向:即找到(或发明)Arduino一方可以轻松理解并重写您的C#程序的协议,以便使用这样的协议发送命令.
Why possible it is not recommendable, in my opinion, to make a XML parser for Arduino.
I suppose you should go the way opposite: that is find (or invent) a protocol which the Arduino side could easily understand and rewrite your C# program in order to send commands using such a protocol.


这篇关于如何在ARDUINO uno R3中读取XML文件以进行线性位置电机控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆