Porlogix GPIB-Ethernet Controller

Since the LakeShore 335 only have USB or GPIB interface. The prologix controller, 
Prologix GPIB-Ethernet, is used to put the LS335 on the ethernet.
Here are my notes on configuring the GPIB-Ethernet for the LakeShore 335 unit.

The web site is prologix.biz

0. Update Firmware using PC tools, and Windows.

   1. Download the firmware update file "gpib-eth-1.2-1.6.1.0.zip"
   2. Disconnect the Controller from the GPIB instrument
   3. Connect to ethernet, and power up the controller on same network as the PC.
   4. Open command window on the PC
   5. Type updater.exe MAC_ADDRESS, ie:
        updater.exe 002169010c38
   6. wait until update is complete, which could take upto 30 seconds.

   (Note: this wipe out any configuration on the device).

1. Assign IP

   Power Controller.
   Run netfinder.exe
      + find, and set IP#. Note the GPIB-Ethernet device a label with it's MAC address.
      + use
        spex-bigdog-tc   192.168.1.15 
        spex-guidedog-tc 192.168.1.16 

   Test communication
      Telnet in using port 1234, "telnet 192.168.1.xxx 1234"
      Type "++ver", the unit should return verion string: 
		   "Prologix GPIB-ETHERNET Controller version 01.05.01.00"

   Here is a example of some query commands:

       telnet spex-bigdog-tc 1234
       Trying 128.171.110.168...
       Connected to bigdogtc.
       Escape character is '^]'.
       ++addr
       5
       ++auto
       1
       ++mode
       1
       ++read_tmo_ms
       500
       ++ver
       Prologix GPIB-ETHERNET Controller version 01.06.01.00


3. Attach to 335 Tempearture controller.

   First check that the IEEE-488 interface is enable and get the address for the lakeshore.
   The lake shore menu navigation is:
      Interface->Enabled->IEEE-488
      Insteface->IEEE-488 Address->(1to31)

      Lakeshore defaults were IEEE-488 enable, address 12.

   You must configure the addr on the gpib for 12 (default was 5) before
	communication  with the lakeshore. ie:

		Trying Trying 192.168.1.15...
		Connected to spex-bigdog-tc.
		Escape character is '^]'.
		++ver
		Prologix GPIB-ETHERNET Controller version 01.05.01.00
		++addr 12
		*idn?
		LSCI,MODEL335,335A10B/#######,1.2

3. gpibio.c is a command line program to communication with the LS 335 Tempearture controller
   using the GPIB-Ethernet controller.

   Source code is here: /home/s2/src/spex/ldog/gpibio/
	Here are some examples.

	The *IDN? temperature commmand return the ID string.

	Query for the ID string:
		gpibio  -h spex-bigdog-tc '*IDN?'
		OK LSCI,MODEL335,335A108/#######,1.2  

	Multiple queries example, temperature, set point, range, heater output:
	   gpibio -h spex-bigdog-tc 'krdg? A; setp? 1; range? 1; htr? 1; pid? 1'
		OK +36.999;+37.000;2;+051.4;+0050.0,+0020.0,+000.0

   Same for the 2nd channel:
	   gpibio -h spex-bigdog-tc 'krdg? B; setp? 2; range? 2; htr? 2; pid? 2'
		OK +13.400;+500.00;0;+000.0;+0050.0,+0020.0,+000.0