LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Net Address

Solved!
Go to solution

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

2018-03-22 09_27_23-Network Connections.png

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

0 Kudos
Message 1 of 6
(4,790 Views)
Solution
Accepted by topic author Slaxx

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).

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 6
(4,786 Views)

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).

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 6
(4,777 Views)

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".

0 Kudos
Message 4 of 6
(4,774 Views)

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!Smiley Wink

 
0 Kudos
Message 5 of 6
(4,770 Views)
Solution
Accepted by topic author Slaxx

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.

0 Kudos
Message 6 of 6
(4,737 Views)