Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Can I Determine the IP Address of my Blackfin Application?

Primary Software: LabVIEW Modules>>Embedded Module for Blackfin Processors
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I am using the LabVIEW Embedded Module for ADI Blackfin, and I am creating an application that uses ethernet communication. I have enabled TCP/IP support by choosing Tools>>Build Options and selecting Enable lwIP TCP/IP support under the Advanced tab. I have connected the EZ-KIT to a network with a DHCP server, and the EZ-KIT appears to be acquiring an IP address. How can I determine what IP address the EZ-KIT has been assigned?

Solution: The lwIP (Lightweight TCP/IP) stack for the Blackfin supports a function called gethostaddr that returns the IP address of the target. The attached VI calls this function using an Inline C Node and passes that value to stdout using a printf statement. Use this VI at the beginnning of an application in which you wish to display the IP address of the Blackfin Processor. To view the output of this VI, be sure that Redirect stdout to serial port is not selected in the Advanced tab of the Target>>Build Options dialog. Before you run the application, choose Target>>Processor Status to display the processor status window. When the attached VI is run, the IP address can be viewed by clicking the Output tab in the Processor Status window.

Related Links:

Attachments:


Print EZKIT IP Address.vi


Report Date: 04/19/2006
Last Updated: 04/20/2006
Document ID: 3WIK54HD

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit