微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 测试测量 > 虚拟仪器 > 在labview里面怎么得道计算机名字?

在labview里面怎么得道计算机名字?

时间:12-13 整理:3721RD 点击:
就像VC下面的的getcomputername()一样,
或者至少得到计算机的ip地址,谢谢

Please see the attachment.

 ComputerName.vi

 localIP.vi

多谢:))

能否对您的编程思路进行介绍一下,那个获取LOCAL IP的程序

使用Application control->property node

In Windows, the IP address can be obtained by type "ipconfig" in DOS. So you can use "System Exec.vi" in LV to execute this command, and extract the IP address from the return string.
The "System Exec.vi" is very useful. For example, you can use command "time" to set the system clock in DOS. Please see the attachment.

 SetSystemTime(LV6).vi

In addition, you can run any exe file in DOS. For example, you install WORD under
C:\Program Files\Microsoft Office\Office,
then you can just write "WINWORD.exe" to "System Exec.vi" under this directory and run WORD.

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top