How can I Set the IP Address of a PC Programmatically in LabVIEW?Primary Software: LabVIEW Development Systems>>LabVIEW Professional Development SystemPrimary Software Version: 8.5.1 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: Is it possible to set the IP address of my computer programmatically in LabVIEW? Solution: You need to use the System Exec VI which invokes the command window. Right-click on the Block Diagram of a VI to show the Functions Palette and navigate to Connectivity»Libraries & Executables and place the System Exec VI on the block diagram. Right-click on the Command line input terminal of the System Exec VI and select Create Constant. In the created string constant, type the following arguments: netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1 This will configure the connection named Local Area Connection to use static IP adress 192.168.0.100, subnet mask 255.255.255.0 and DNS server 192.168.0.1 1. Related Links: LabVIEW Help: System Exec KnowledgeBase 3SC9P5IH: Setting Computers on the Same Subnet External Webpage: How can I configure TCP/IP settings from the Command Prompt? Attachments:
Report Date: 05/06/2008 Last Updated: 05/09/2008 Document ID: 4L5ADHUV |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
