Check out the related Code Repository Files or visit the LabVIEW Wiki Internet Portal
Tags |
(This content has not been tagged yet)
|
![]() |
Oct 3 2008, 07:03 PM
Post
#1
|
|||
|
Very Active Member Posts: 94 Joined: 11-March 05 Member No.: 1804 Using LabVIEW Since:1997 LV:8.2.1 ,8.20 ,7.1.1
My Gallery
|
Hello:
If a computer has both wireless and hardwired Ethernet cards, how does one choose to send info by choosing one against another? E.g:
Otherwise, is it safe to assume that if you enter the address: 192.168.#.# then the peer-to-peer network port will be used and that if the address is something like: 116.135.9.11 then the wireless internet connection will be selected automatically? Thanks Anthony This post has been edited by alukindo: Oct 3 2008, 07:05 PM
|
||
|
|
|||
| Ad |
Oct 3 2008, 07:03 PM
Post
#
|
||
|
|
|
||
|
|
|||
Oct 4 2008, 06:18 PM
Post
#2
|
|||
![]() Extwemely Active Premium Member ![]() Posts: 1632 Joined: 23-January 05 From: Here Member No.: 1431 Using LabVIEW Since:2003 LV:8.6 ,7.0 ,.
|
Try searching and reading about routing tables. Essentially, which adapter to use is determined by the settings (e.g. the network mask), but if the adapters overlap, I'm not sure you can control this. At most, I believe you can call some Windows functions to change the priorities.
-------------------- More than meets the eye...
|
||
|
|
|||
Oct 6 2008, 04:43 AM
Post
#3
|
|||
|
1 more post to go! Member Posts: 9 Joined: 5-September 08 Member No.: 12461 Using LabVIEW Since:2002 LV:6.1 ,7.1 ,8.5
|
Hi Anthony,
I had to deal with this in the past and I went back to the help to find the answer again: TCPIP INSTR TCPIP[board]::host address[::LAN device name][::INSTR] TCP/IP Instr TCPIP SOCKET TCPIP[board]::host address::port::SOCKET TCP/IP Socket [board] is the number of the interface (0,1,2,3,...) that you can specify and therefore force LabVIEW to use. For example, if your wireless card is adapter 2, you would use the VISA resource: TCPIP2:192.168.1.100 I am not 100% sure whether [board] is the exact same thing as the output of Windows "Route print" function but I'll let you test it! Let us konw what you find out. Olivier
|
||
|
|
|||
Oct 6 2008, 11:04 PM
Post
#4
|
|||
![]() Very Active Premium Member ![]() Posts: 145 Joined: 13-November 03 From: Kennesaw, GA USA Member No.: 195 Using LabVIEW Since:1997 LV:8.5 ,8.2.1 ,.
|
In addition to the other good pointers you've received, here's one more piece of advice, since you said you're running on a PC (I'm assuming you're running under a Windows OS):
Open 'Network Connections', either through the Control Panel or by right-clicking on an adapter icon in the SysTray. On the menu, select 'Advanced->Advanced Settings...'. From here, Windows allows you to reorder adapter priority. This comes in to play when multiple adapters can each reach the same destination address. I've seen too many laptops with built-in WiFi that used the wireless adapter for all network traffic, even when docked to a 100base-T line Dave -------------------- David Boyd
Sr. Test Engineer Respironics
|
||
|
|
|||
![]() ![]() |
| Time is now: 1st December 2008 - 11:58 PM |