11-05-2007 04:54 PM
11-06-2007 01:50 AM - edited 11-06-2007 01:53 AM
11-06-2007
10:05 AM
- last edited on
05-29-2024
08:25 AM
by
Content Cleaner
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.
04-16-2009 07:06 AM
06-17-2009 01:30 PM
I am also using Measurement Studio for VS2005 C# and would like to do the same thing.
06-18-2009
01:57 PM
- last edited on
05-29-2024
08:26 AM
by
Content Cleaner
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?
06-18-2009 02:22 PM
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.
06-19-2009
10:38 AM
- last edited on
05-29-2024
08:27 AM
by
Content Cleaner
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.