03-22-2018
04:30 AM
- last edited on
11-06-2024
05:42 PM
by
Content Cleaner
Hello guys
I want to send UDP Packets on a specific network card as 4 are installed in the same computer.
The four network cards are connected to specific subnets.
I found the String to IP function but I have no idea what I have to enter there:
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/string-to-ip.html
My four cards
Have the IPs (IP, Mask, Gateway)
1. DHCP automatically
2. 192.168.120.211 / 255.255.255.0 / empty
3. 192.168.201.10
4. 192.168.202.10
Is it the IP that that card has? Is it some name?
Thanks for your help
Solved! Go to Solution.
03-22-2018 04:37 AM
Yes it is the IP number (or alternatively the IP network name, but that is generally not easy to setup and control for multiple local network cards).
03-22-2018 04:58 AM
If you input the machine network name and enable Multiple Output (right-click on the String to IP function), you can get an array of all the IP addresses associated to your network cards (physical and virtual).
03-22-2018 04:59 AM
You're letting us know what function you've found as a possible solution, and asking how to use it.
It's not clear to me what you want to achieve. It seems that "String To IP" is not the problem...
String To IP accepts numbers, but also "localhost" (it returns 127.0.0.1) or URL's like "www.google.nl".
03-22-2018 05:04 AM
Hi,
Is it the IP that that card has? Is it some name?
It is the IP adress of your card that you have to enter.
Find this example in the local help of LV : UDP Multicast.lvproj.
Regards,
Fred.
Kudos are welcome!![]()
03-22-2018 07:36 AM
The example only shows the use for sending to an IP Adress. What I was looking for is the adress that has to be entered when opening the port which defines what Network Adapter is used.
Apparently it does work when the IP of the Computer over that Network card is used.