LabVIEW 跳转访问网页

在设计 LabVIEW 应用程序时,点击按键,跳转访问网页的功能十分常见。
使用 LabVIEW 跳转网页的方式有很多种,本篇博文推荐一种比较简单的方法:执行系统命令。
执行系统命令实质上就是 LabVIEW 调用 Windows CMD 指令,通过 Windows CMD 指令访问网页。可在 LabVIEW 中右键鼠标:互联接口→库与可执行程序→执行系统命令

执行系统命令 VI 说明如下所示:

Windows CMD 指令网上资料很多,这里就不再赘述了,感兴趣的朋友可以自行研究学习。
我在 Windows 环境中使用指令:CMD /C start https://blog.csdn.net/m0_38106923,可以正常访问我的博客网站。

将该指令使用 LabVIEW 调用,实现如下所示:

版权声明: 本文为 InfoQ 作者【不脱发的程序猿】的原创文章。
原文链接:【http://xie.infoq.cn/article/7176ad6ee4ba67c0aeeb1d889】。文章转载请联系作者。
评论