FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I programaticaly select a cFP channel?

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:

 

Block.png

 

Panel.png

 

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?

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 1 of 12
(7,091 Views)

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!

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 2 of 12
(7,090 Views)

LocalHost.png

 

This gets me closer but still only the DNS Name, not the project alias

 

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 3 of 12
(7,088 Views)

Timmar,

 

Do you know the IP address of the cFP?

0 Kudos
Message 4 of 12
(7,060 Views)

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.

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 5 of 12
(7,052 Views)

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?

0 Kudos
Message 6 of 12
(7,042 Views)

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.

  .

 

 

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 7 of 12
(7,040 Views)

Timmar,

 

Just curious, when the IP address is assigned is it done programatically or using MAX?

0 Kudos
Message 8 of 12
(7,036 Views)

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.

0 Kudos
Message 9 of 12
(7,035 Views)

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.

 

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 10 of 12
(7,027 Views)