2020年新版labview__串口通信实现过程.docx

  1. 1、本文档共29页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Labview实现串口通信步骤 在程序面板上添加 VISA配置接口 Measurement I/O Instrument 1/0 Vision and MotionI Vision and Motion I 七 Instrument I/O MathematicsMathematicsSignal ProcessingSignal ProcessingData CcmmuriiicationData CcmmuriiicationConnectivityControl Design & SimuhtionSignalE^prMSExpressAddonsFavorites Mathematics Mathematics Signal Processing Signal Processing Data Ccmmuriiication Data Ccmmuriiication Connectivity Control Design & Simuhtion SignalE^prMS Express Addons Favorites User Libraries Select a VI... Instr Drivers [VI Clas$ Dr.” Instr Asst |~48S~|^ 添加后,开启帮助文档的显示。菜单的 Help->show context help如下图 Show Context tjelp Lock Context HelpQrl+HCtd + ShFft+LSle Edit yiew project Operate Tools Jflfindcw Show Context tjelp Lock Context Help Qrl+H Ctd + ShFft+L Sle Edit yiew project Operate Tools Jflfindcw 鼠标选择目标则会显示帮助框。如下图所示。 Initializes the serial port specified by VISA resource to the specifiedsettings^ Wire dat^ to the VISA resource name input to determine the创建相应的配置在程序面板中鼠标移动到对应的引脚上,点击鼠标右键 ->create->control,创建后,界面面板上会出现对应的控制框。如下图所示,创建个 VISA resource name。 Initializes the serial port specified by VISA resource to the specified settings^ Wire dat^ to the VISA resource name input to determine the 创建相应的配置 在程序面板中鼠标移动到对应的引脚上,点击鼠标右键 ->create->control,创建后,界面 面板上会出现对应的控制框。如下图所示,创建个 VISA resource name。 前面板显示如下: 图0-1创建窗口选择控件 图0-2前面板显示控件选择 4依次创建,波特率、停止位、数据位等 如下图所示。 Context Help [ s D:\.?\LabVIEW 201 l\viJib\In£tr\_visa川b\VI£A Configure Serial Part Err^bl^ Termination 匚hat (T'i —■ terminartfon char (OxA = timeout (lOsec) VISA resource name baud rate (9600) data bits ⑻ parity (Dmone) error in (no &rror) stop brts (10: 1 bit} flow control (0:none) VISA resource name■ ■ ■I/丽baud rate (9600) —data bits (B)parity (0:none] VISA resource name ■ ■ ■ I/丽 baud rate (9600) — data bits (B) parity (0:none] slop bits (10: 1 bit) 5.创建个while循环,用于放置发送的程序 stop stop 鼠标移动到循环条件控制的引脚上,创建个 control。用于调试,不对条件处理,会报错。 6前面板放置个按钮,用于控制数据的发送 ModernOK Button更9o o1^1ExpressOK ButtonSysteClassicBoolean Modern OK Button 更 9 o

文档评论(0)

cooldemon0602 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档