From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
我需要使用Datasocket的读取VI下载一个文本文件的内容到LabVIEW中,但是这个文本文件在一个http服务器上而且需要一个用户名和密码才能获取该文件
比如:
您需要使用下面的格式的URL输入给Datasocket的读取VI:
http:\\LabVIEWuser:LabVIEWpass@www.ni.com\dummy\myfile.txt[text]
注意需要添加字符串[text]到URL中,这样就能强制Datasocket以非格式化的文本来对待。请参考 this 链接来或者相关主题的更多内容。
Here 是一个范例表明了如何读取一个储存在网络上的XML文件。您可以通过修改URL来获取一个密码保护的文件。.
|