05-25-2010 09:58 AM
Hello,
I have several cfp-1804 modules connected and functioning properly. I would like to programatically read the IP address for each module from the *.iak file or maybe from MAX. I want to be able to determine the IP address within my LabVIEW program even if the modules are disconnected or powered off.
Thanks. Corey
05-26-2010 09:52 AM
Hi Corey,
If you're using a LabVIEW Project, you can read in the .aliases file to grab the IP Address. This file holds target information for things like shared variables, FieldPoint targets, etc.
Other than that, if you have LabVIEW Real-Time available, you can use the RT Utilities palette (Get Target Information VI) or RT System Replication Tools (versions prior to 2009) to programmatically retrieve IPs for all connected targets.
Can you tell me why you would need the IP Address if the device isn't connected?
05-26-2010 11:01 AM
I am using the LabVIEW project and after looking at the .aliases file I see the IP address. I think that will work for me. Thanks.
The modules frequently get disconnected from the network or power is removed. I want the IP address so I can Ping the modules to determine if they are connected. I didn't want to hard code in the IP address, so that is why I wanted to pragmatically read it. Currently, I try to read a value from the cfp-1804 to determine connection status. This works, but it takes a long time (up to 30 seconds) if the unit is disconnected. I also have experienced an issue where I can disconnect the network cable, but am still able to get a reading from the cfp module. I've read that this is possible because the data is cached locally.