Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB-ENET/100 problem with NI 488.2 v2.5 under Suse 10

Solved!
Go to solution

Hi,

 

I have installed 'NI-488.2 (Linux) Version 2.5 for Linux--32 Bit ' under Suse 10. Now I try to add the GPIB-ENET/100 by using gpibexplorer but failed:

 

1. I connected the GPIB_ENET/100 directly to computer (eth1) with a cross-over cabel.

2. Following the prompts of gpibexplorer, I observed the PWR/RDY LED is in orange flicked, so configured the IP Address/Host name as 192.168.1.2.

3. Then I clicked the button "Search for GPIB-ENET/100", I got "No devices to display."

4. I configured the  IP Address/Host name as "NIENET", which is the default host name printed on the back panel of the device, and got the same result in step 3. 

5. One thing I need to mention is that I have installed nienet-linux-1.2 before, and the ENET box hasn't work with it neither. I have set

 

 

192.168.1.2 NIENET gpib0

 

 

in the file /etc/hosts, and I have't removed any files of this installation.

 

The status of the network types are:(netstat -rn)

 

Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 134.105.192.0 0.0.0.0 255.255.248.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 134.105.192.1 0.0.0.0 UG 0 0 0 eth0

 , and the ehternet board type is:(ifconfig)

 

eth0 Link encap:Ethernet HWaddr 00:0A:5E:52:48:51 inet addr:134.105.193.25 Bcast:134.105.199.255 Mask:255.255.248.0 inet6 addr: fe80::20a:5eff:fe52:4851/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:54226 errors:0 dropped:0 overruns:1 frame:0 TX packets:15248 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:17829035 (17.0 Mb) TX bytes:3468412 (3.3 Mb) Interrupt:177 Base address:0x6000 eth1 Link encap:Ethernet HWaddr 00:11:2F:AE:5D:55 inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::211:2fff:feae:5d55/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:285 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2950 (2.8 Kb) TX bytes:12186 (11.9 Kb) Interrupt:185 Base address:0xb000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:489 errors:0 dropped:0 overruns:0 frame:0 TX packets:489 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:44592 (43.5 Kb) TX bytes:44592 (43.5 Kb)

 

My questions are:

1. in GPIB Configuration, shall I set IP address AND hostname, or IP address OR hostname? If it is "OR", in which file they should be linked?

2.  "NIENET" is the default host name. How to change it?

3.  What's the problem with my configuration?

 

Thanks in advance and regards,

Weining 

 

0 Kudos
Message 1 of 5
(4,268 Views)

 

Hi Weining,

if your ENET/100 is new right out of the box, it will try to aquire an IP from a DHCP server. If you do not have one available in your subnet, you will have to configure the IP manually.

When launching the GPIB Explorer, be sure to have the ENET device connected to eth0, as described in Using the GPIB-ENET/100 With Multiple Network Devices in Linux .

Then you should be able to locate the ENET and provide the desired IP. The predefined host name is for your convenience only. You can specify other host name aliases in the HOSTS file if you want to, but this step should be well-documented, as migrating your application to another computer will then also require migrating these aliases.

Best regards,
Sebastian

0 Kudos
Message 2 of 5
(4,223 Views)

Hi Sebastian,

 

thanks for your answer.

 

I did connect the ENET/100 to eth1. Following the Using the GPIB-ENET/100 With Multiple Network Devices in Linux, I want to configure the box connected on eth1. After launching gpibexplorer, I can select New instead of New Device, and no Search button appears. So I cannot configure the static IP address for ENET/100. I noticed the above link is about NI-488.2 v2.3.1, is there any changes of the solution with NI-488.2 v2.5?

 

Best regards,

Weining

0 Kudos
Message 3 of 5
(4,220 Views)
Solution

Hi Weining,

 

 

to be able to configure a NEW ethernet device, you must have it connected to eth0 - otherwise the GPIB Explorer will not be able to find it. This is clearly described in the referenced article, and there is no workaround for this necessity. 

You can only configure devices on eth1 if they already have a static IP assigned.

 

 

So please follow the steps below (abstract of the article you and I already linked):

 

1) Connect the new ENET/100 to eth0

2) Open the GPIB Explorer, select "New Devce" and click the "Search" button to find the box.

3) Select the found device and edit its IP settings to fit the network connection on eth1 and exit GPIB Explorer

4) Now disconnect the device from eth0 and connect it to eth1

5) Restart GPIB Explorer, select "New" and enter the static IP you gave the ENET box.

 

Best regards,

Sebastian

 

 

 

0 Kudos
Message 4 of 5
(4,213 Views)

Hi Sebastian,

 

thank you very much for your solution.

 

I followed those steps you mentioned and set the static IP adress successefully. I understand your abstract better than the article;)

 

By the way, in the step 2) after open the gpibexplorer, I select "New", then click "Next" two times, then choose "Search for GPIB-ENET/100" to get the device list.

 

For the old driver nienet-linux-1.2, I also tried the command <directory_of_nienet>/EthernetConfig successfully to get the device list.

 

Best regards,

Weining 

0 Kudos
Message 5 of 5
(4,211 Views)