Rank: 1134 based on 118 downloads (last 30 days) and 3 files submitted
photo

Iain Robinson

E-mail
Company/University
University of Edinburgh
Lat/Long
55.92387, -3.174777

Personal Profile:

I am a researcher at the University of Edinburgh working on lidar for atmospheric remote sensing, especially of greenhouse gases. I use MATLAB for general data processing and graphing as well as more specific tasks. These include plotting data from the High-Resolution Transmisison (HITRAN) Database, reading spectra from spectroradiometers, ray tracing optical systems and simulating electronic circuits with the Simulation Program with Integrated Circuit Emphasis (SPICE).

Professional Interests:
Optics, Environmental science

 

Watch this Author's files

 

Files Posted by Iain View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 Dec 2013 Field Spectroscopy Facility Post Processing Toolbox A toolbox for importing and processing optical spectra acquired with portable spectroradiometers. Author: Iain Robinson data import, earth science, spectroscopy, spectrometer, spectroradiometer, toolbox 55 1
  • 4.5
4.5 | 2 ratings
11 Sep 2012 Screenshot isfread Read a waveform from a file in the internal format (ISF) used by some Tektronix oscilloscopes. Author: Iain Robinson oscilloscope, instrument 33 0
11 Jul 2012 Screenshot Run ngspice simulation and import rawfile Runs ngspice with a given netlist and loads the simulation output (rawfile) into MATLAB. Author: Iain Robinson electronics, data import, simulation 30 5
  • 5.0
5.0 | 1 rating
Comments and Ratings by Iain View all
Updated File Comments Rating
04 Jan 2013 Strip Chart Scrolling plot to display streaming data. Author: Robert Bemis

Works almost straight out the box!

In the example program contained in the comments at the top of the file, change the spelling of 'stripchart' to 'StripChart'.

03 Jan 2013 Run ngspice simulation and import rawfile Runs ngspice with a given netlist and loads the simulation output (rawfile) into MATLAB. Author: Iain Robinson

Dear Richa,
it's hard to work out exactly where it is failing, but it seems to be something to do with paths.

You said that ngspice is producing the following error:

"SpiceModel_2e.txt": Invalid argument

Could the quotation marks around the file name be causing the problem? You could try removing them by changing line 40 from:

command = sprintf('ngspice --batch --rawfile="%s" "%s"', rawfilename, netlistfilename);

to:

command = sprintf('ngspice --batch --rawfile=%s %s', rawfilename, netlistfilename);

(The quotation marks are there so that the script can cope with spaces in file or folder names; but you are not using any spaces in your file names.)

Iain.

Comments and Ratings on Iain's Files View all
Updated File Comment by Comments Rating
07 Jun 2013 Field Spectroscopy Facility Post Processing Toolbox A toolbox for importing and processing optical spectra acquired with portable spectroradiometers. Author: Iain Robinson mensa, jean

it reads,

SWIR1Gain: 0 SWIR2Gain: 0
SWIR1Offset: 0
SWIR2Offset: 0
Join1Wavelength: 0
Join2Wavelength: 0

resulting in data = 0 due to the normalization of the spectrum. The model is a FieldSpec Hand Held 2.

17 Jan 2013 Run ngspice simulation and import rawfile Runs ngspice with a given netlist and loads the simulation output (rawfile) into MATLAB. Author: Iain Robinson Richa

Thank you! That helped! I also moved everything including the program file to the same folder to avoid any pathway issues.

03 Jan 2013 Run ngspice simulation and import rawfile Runs ngspice with a given netlist and loads the simulation output (rawfile) into MATLAB. Author: Iain Robinson Robinson, Iain

Dear Richa,
it's hard to work out exactly where it is failing, but it seems to be something to do with paths.

You said that ngspice is producing the following error:

"SpiceModel_2e.txt": Invalid argument

Could the quotation marks around the file name be causing the problem? You could try removing them by changing line 40 from:

command = sprintf('ngspice --batch --rawfile="%s" "%s"', rawfilename, netlistfilename);

to:

command = sprintf('ngspice --batch --rawfile=%s %s', rawfilename, netlistfilename);

(The quotation marks are there so that the script can cope with spaces in file or folder names; but you are not using any spaces in your file names.)

Iain.

26 Dec 2012 Run ngspice simulation and import rawfile Runs ngspice with a given netlist and loads the simulation output (rawfile) into MATLAB. Author: Iain Robinson Richa

I am getting the error:

spinit found in c:\spice\share\ngspice\scripts\spinit
"SpiceModel_2e.txt": Invalid argument
Could not delete temp file: Permission denied

in the NGSpice window and then:

Error using ngspice (line 49)
Could not open rawfile:
C:\...
No such file or directory
This may indicate that the simulation failed.

in Matlab. I think the error has to do with a pathway issue. I had put the Matlab file and the netlist file in the "bin" folder with the application. There is a temp file (with a different name than rawfilename)that is created in that folder. Any suggestions on what could be going wrong?

Thank you!!
Richa

26 Dec 2012 Run ngspice simulation and import rawfile Runs ngspice with a given netlist and loads the simulation output (rawfile) into MATLAB. Author: Iain Robinson Richa

I am getting the error:

spinit found in c:\spice\share\ngspice\scripts\spinit
"SpiceModel_2e.txt": Invalid argument
Could not delete temp file: Permission denied

in the NGSpice window and then:

Error using ngspice (line 49)
Could not open rawfile:
C:\...
No such file or directory
This may indicate that the simulation failed.

in Matlab. I think the error has to do with a pathway issue. I had put the Matlab file and the netlist file in the "bin" folder with the application. There is a temp file (with a different name than rawfilename)that is created in that folder. Any suggestions on what could be going wrong?

Thank you!!
Richa

Contact us