11-21-2012 11:37 PM
Starting with Wayne C's Groundwork I am trying to find a way to configure an I/O channel without having to know the Name of the cFP In use.
Here is my attempt:
The Problem that I have encountered is:
1. You Need to know your device Name to construct the string
2. If you have other cFP devices in your project, the "get comm rescource list" command comes up with an array of available cFP's.
Is there a clever way if Identifying which one I am using?
Are there alternative methods?
11-21-2012 11:55 PM - edited 11-22-2012 12:01 AM
Just tried using "RT Get Target Information"
It gives me the DNS Referencs and ... Wait for it:
The data is for another device that I have attached to the network (also in my project).
Grrr!
11-22-2012 12:40 AM
This gets me closer but still only the DNS Name, not the project alias
11-28-2012 10:35 AM
Timmar,
Do you know the IP address of the cFP?
11-28-2012 06:22 PM
Wayne,
IP addess is not known (the configuration and Software is Generic,
It can however be read from device.......
I am guessing you can insert this into the rescource name portion of the channel string.
iTm.
11-29-2012 08:14 AM
Timmar,
I guess I don't understand the big picture. How is the program supposed to know what cFP to talk to? Does the user know what cFP they want to target?
11-29-2012 08:24 AM
You have probably solved my problem, I will test out the theory later next week when I return to the project..
a cRIO accepts "Localhost", unfortunately the cFP doesn't seem to have the same good manners.
Big Picture,
The cFP is being used as an industrial controller in an OEM system, The ip address is assigned retrospectively and cannot be hard coded or have the parameters changed at a later time.
.
11-29-2012 08:39 AM
Timmar,
Just curious, when the IP address is assigned is it done programatically or using MAX?
11-29-2012 08:46 AM
Another thought. Take a look at a file named 'fpbank.ini' on the cFP. It should contain info such as the name of the cFP as assigned using MAX.
11-29-2012 07:06 PM
IP and DHCP Name are assigned using MAX once installed on site.
This information can be read from the device for use in channel string creation.
As above, if you can construct the channel string Using the IP, this problem is solved.