在labview里面怎么得道计算机名字?
时间:12-13
整理:3721RD
点击:
就像VC下面的的getcomputername()一样,
或者至少得到计算机的ip地址,谢谢
或者至少得到计算机的ip地址,谢谢
Please see the attachment.
多谢:))
能否对您的编程思路进行介绍一下,那个获取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.
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.