FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I locate a fieldpoint on a lan?

we are using the cfp-2120 and it will be moving around a bit requiring dhcp. I would like to write a vi that searches the subnet for the device and returns the ip. Max does this but, I haven't found the documentation on how. Any ideas on how to do this?

Thanks
0 Kudos
Message 1 of 8
(8,811 Views)
I found sometime about a "Device discovery server", at least on the cRIO, but I think the FP might be the same. With this kind of service I would scan the network for IP's that respond to the "Device discovery server" port, with a FP ID.

You could try and use nmap to scan you're network for active hosts and see which port are available or scan network traffic using Wireshark/Ethereal to discover how MAX communicates to the FP's.

Broadcast messages and UDP are good bets.


Message Edited by andre.buurman@carya on 11-06-2007 08:53 AM
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 8
(8,806 Views)
 

Hello reniam,

If you have LabVIEW Real-Time Module, you can use the RT Ping Controllers.vi which returns information, such as the MAC address and IP address, about networked RT Series devices on the local subnet or a remote subnet.  Using this VI, you can find all the RT controllers on the specified subnet.  Find your devices MAC address.  The IP address for your device will be kept in the same cluster element as the MAC address.  This VI will automatically be installed in LabVIEW with the LabVIEW Real-Time Module.

If you do not have the LabVIEW Real-Time Module but do have the NI LabVIEW Internet Toolkit, you can use Get Target Info (MAC).vi from the Real-Time System Replication Tools to find an RT device based on the MAC address.

 
Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
Message 3 of 8
(8,794 Views)
Same issue for me, but i'm using Measurement Studio for VS2008 C#. It is possible to obtain a list of connected cFPs and, for each of them, a list of available channels?
0 Kudos
Message 4 of 8
(7,970 Views)

I am also using Measurement Studio for VS2005 C# and would like to do the same thing.

 

0 Kudos
Message 5 of 8
(7,692 Views)

karpediemnow & willyevans-

 

How are you deploying your C# code to your RealTime target?  The primary way I would suggest accomplishing this task would be to create your code and wrap it into a dll.  Then you can call the dll into LVRT or CVIRT.  After you create the dll, you can use AE KB 3BMI76L1: How Can I Verify that My DLL is Executable in LabVIEW Real-Time? to verify the dll will run on your RT target.

 

Does anyone else have any success stories doing this?

Message Edited by George P Burdell on 06-18-2009 01:58 PM
Regards,

Mike S
NI AE
0 Kudos
Message 6 of 8
(7,674 Views)

I am using the cFP-1808, which is not one of the realtime controllers. Basically, my code uses datasockets. However, a datasocket will connect and return a value of zero if the cFP is not present. If this is the case, the program hangs after the call to disconnect.

0 Kudos
Message 7 of 8
(7,670 Views)

willyevans-

 

I posted an example on ni.com/community which checks to see Is My Network Module Connected.  This will probably be the best way to test the connection of you network module.  This will also alleviate the issue of it hanging.  Take a look and see if this will work for your application.

Regards,

Mike S
NI AE
0 Kudos
Message 8 of 8
(7,655 Views)