LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out the related Code Repository Files or visit the LabVIEW Wiki Internet Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Choose to link via Ethernet or Wireless Modem
alukindo
post 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
Canada Tanzania Nothing Selected 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:
  • This specific PC runs DAQ via a LabVIEW TCP/IP application over a hard wired ethernet port with a static peer-to-peer address. The static address is set as: 192.168.#.#
  • But then, access is also available via the wireless modem. This same computer does in fact allow web browsing using the internet wire-less link.
My question is: I need to create a program that will choose to link via the wireless internet connection to access a remote internet server machine rather than the hardwired connection. So, how does one choose one option versus the other when both are active?

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


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Oct 3 2008, 07:03 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Yair
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 ,.
Israel Nothing Selected Nothing Selected


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


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
OlivierL
post 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
ca_quebec ca_british_columbia Canada


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


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
David Boyd
post 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 ,.
United States us_georgia us_pennsylvania


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 sad.gif It's a quick fix, and I always get "Wow! my [mail/websurfing/fileserver copy/etc] is SO MUCH faster now!"
Dave

--------------------
David Boyd
Sr. Test Engineer
Respironics


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 1st December 2008 - 11:58 PM