1)Manual control of instruments and experiments often lead to human error.
2)It take lot of time and men power when your experiments is human control.
3)Results you get using manual control are often not of good quality.
So in order to overcome this problems you need to make a completely autonomous experimental setup and hence you need to interface these instruments with computer.
The instruments I have in my labs are-
- Tektronix TDS1012B oscilloscope.
- Tektronix AFG3101 Singal generator.
- LCR meter.
- Kaithly Picoammeter cum voltage source.
- Kaithly nanovoltemeter.
- Cryostat.
Before starting that let us discuss the protocols used to interface instruments and the software we can use to interface these instruments.
The basic communication method with the computer are-
- Serial Port communication.
- GPIB (General Purpose Interface Bord).
- USB
http://www.icselect.com/gpib_intfcbds_ds.html
some comes with serial port interface. The serial port is given in many old computer but now in latest computer and Laptops you can't have the serial port for such situation you can use USB-SERIAL PORT CONVERTER.
some instruments comes with USB port and almost all computer has USB port so you don't need to install some other hardware.
Now this was the hardware part now lets switch to software part. Every instruments use a mode for communicating with the computer and our next task is to discuss this mode or protocol for interfacing with the instruments. This protocols are-
- SCIP commands.
- VISA
- IVI
The better way is to use some software which can make our life lot easier. In the range of scientific measurement software most important are LabView and Matlab. I am also going to post Matlab and LabView tutorials in my blogs but for now we will only consider intefcing using this Matlab. Installing matlab is easy like other software , you just need to follow instruction given in the screen don' forget to install "TEST AND MEASURMENT TOOL BOX". Once you have installed matlab just run it go to the command window and type
>tmtool
after this test and measurement tool box will open click the refresh sign to refresh any hardware connected to you computer. At the left side you will find list of all interface like GPIB , Serial , TCPIP etc if your instrument is connected to GPIB board just go to GPIB tree and then click connect button in the right side of the window , it will show the status to be connected if instrument is connected with the computer. Now you can send SCIP commands from the text box above the send and query button.In order to check if everything is going fine just type
*IDN?
and press inquiry button
the response of this command will be a text string which will be having the information about the connected instrument.
Whenever you send some SCIP commands such that the response of the instrument is to send some text string either you can use inquiry or use send and then read command in sequence.
Once you are done with programing your instrument you can go to log session tab where you will find all the codes for what you have done manually you can use this code to make an m-file.
In instrument control tool box you will also find -
- Instrument Objects
- Instrument driver.
Enjoy!
No comments:
Post a Comment