{"id":10762,"date":"2015-10-12T09:15:58","date_gmt":"2015-10-12T16:15:58","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=10762"},"modified":"2022-12-20T06:56:32","modified_gmt":"2022-12-20T14:56:32","slug":"uart-in-labview","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/uart-in-labview\/","title":{"rendered":"UART in LabVIEW"},"content":{"rendered":"<p>I recently posted an Instructable on how to use UART in LabVIEW. \u00a0This project uses <a href=\"http:\/\/www.ni.com\/labview\/\">LabVIEW<\/a>, <a href=\"https:\/\/www.labviewmakerhub.com\/doku.php?id=libraries:linx:start\">LabVIEW MakerHub LINX<\/a>, a <a href=\"https:\/\/digilent.com\/blog\/wf32\/\">chipKIT WF32<\/a>, and the <a href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,401,1038&amp;Prod=PMOD-GPS\">PmodGPS<\/a>. \u00a0The instructable explains a little about what UART is and the connections it uses. \u00a0It then goes over how to read values from the UART device and the most difficult part which is formatting the incoming strings into useful information.<\/p>\n<p><a href=\"https:\/\/digilent.com\/reference\/microprocessor\/wf32\/reference-manual\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10770 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/20150930_1409001-600x418.jpg\" alt=\"20150930_140900\" width=\"600\" height=\"418\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/20150930_1409001-600x418.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/20150930_1409001-1024x713.jpg 1024w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>The most important part about getting readings from a sensor is to read the reference manual. \u00a0The reference manual tells you how the device works. \u00a0It will tell you if you need to send anything to the device before it will send you back something and it will also say how the information it sends you is formatted so you can rearrange it into something useful.<\/p>\n<p>In the case of the PmodGPS, you can send transmissions to the device to configure it but the most importantly it tells you that the GPS module constantly sends GPS information in <a href=\"http:\/\/www.gpsinformation.org\/dale\/nmea.htm\">NMEA sentences<\/a>. \u00a0All the data is separated by commas and you can use that fact to help you sort your data. \u00a0Because of the complexity of the NMEA sentences, the PmodGPS is much more taxing to read than most UART sensors. \u00a0Check out the block diagram and front panel below to see how I broke up the PmodGPS sentences and displayed them to the user.<\/p>\n<p><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/PmodGPSReadd.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-10765 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/PmodGPSReadd-600x135.png\" alt=\"PmodGPSReadd\" width=\"600\" height=\"135\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/PmodGPSReadd-600x135.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/PmodGPSReadd-1024x231.png 1024w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,719,1471&amp;Prod=LABVIEW-PCK\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10766 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/PmodGPSExamplep-600x406.png\" alt=\"PmodGPSExamplep\" width=\"600\" height=\"406\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/PmodGPSExamplep-600x406.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/PmodGPSExamplep.png 674w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Try using my Instructable as a guide to get your own UART connection going. \u00a0Let me know if you have any questions and also check out the <a href=\"https:\/\/www.labviewmakerhub.com\/forums\/\">LabVIEW MakerHub Forums<\/a>.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-10762 jlk' data-task='like' data-post_id='10762' data-nonce='35f55bdfa6' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-10762 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-10762 jlk' data-task='unlike' data-post_id='10762' data-nonce='35f55bdfa6' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-10762 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-10762 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Making a connection&#8230;a UART connection. With LabVIEW.<\/p>\n","protected":false},"author":33,"featured_media":10772,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4323],"tags":[],"ppma_author":[4481],"class_list":["post-10762","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/10\/20150930_1330061.jpg","authors":[{"term_id":4481,"user_id":33,"is_guest":0,"slug":"sudharsan-sukumar","display_name":"Sudharsan Sukumar","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/a14d4c855a4738a3b7d04f48ab9936a38ea5a056ea75b4761a407b53dac5597b?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/10762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=10762"}],"version-history":[{"count":2,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/10762\/revisions"}],"predecessor-version":[{"id":29432,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/10762\/revisions\/29432"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/10772"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=10762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=10762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=10762"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=10762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}