Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

IMU6DOF via Labview rs-232

บ่อยครั้งที่เราซื้อ Sensor แล้วในตัว sensor นั้นมีการติดต่อแบบ serial  มาในตัวเลย  ในบทความนี้จะพูดถึงการอ่านข้อมูลจาก Gyro and accelerometer ที่ส่งข้อมูลแบบ serial  โดยใช้โปรแกรม Labview rs-232 เนื่องจากข้อมูลที่ได้จาก sensor ตัวนี้ไม่ได้ส่งมาเฉพาะตัวเลขแต่จะข้อมูลแบบ string หลักแรก และ หลักสุดท้าย ดังรูปด้านล่าง

ซึ่งถ้าเขียน Labview rs-232 รับมันตามcode ด้านล่างเราก็จะสามารถอ่านข้อมูลจาก Sensor ได้

ข้อมูล sensor ที่ผมใช้  http://www.thaieasyelec.com/index.php?lay=show&ac=cat_show_pro_detail&pid=54848



This post first appeared on Mechanical Engineering KMUTT, please read the originial post: here

Share the post

IMU6DOF via Labview rs-232

×

Subscribe to Mechanical Engineering Kmutt

Get updates delivered right to your inbox!

Thank you for your subscription

×