Great, thank you, Jake.

On Sun, Nov 22, 2020, 9:42 PM Gavin <gabo13...@gmail.com> wrote:

> Prof. Baker,
>
> Thanks for informing of the existence of the 'readLtsRaw.m' Matlab
> script.  I currently don't have access to Matlab, but with a few
> modifications to 'readLtsRaw.m', it looks like it will work with Octave as
> shown in the attached "Plot LTSPICE XVII raw with Octave.pdf".  I may be
> able to use what I learned from this in the future to try to modify the
> Electric JAVA source.
>
> Gavin
>
> On Sunday, November 22, 2020 at 2:36:23 PM UTC-7 rjacobbaker wrote:
>
>> One of my students just sent me the following related to problems with a
>> MATLAB script we use also not being able to read the output of the newer
>> version of LTspice. This (newer version of LTspice represents characters
>> with 2 bytes instead of 1) is likely the issue with Electric so if someone
>> wants to use the newer version of LTspice with Electric the below might be
>> useful (if you make the programming Java change).
>>
>> If there is ever a new version of Electric, that is v. 9.08, it would be
>> good to get the LTspice code updated so that newer version of LTspice work
>> with Electric. Again see:
>> http://cmosedu.com/cmos1/ltspice/ltspice_electric.htm
>>
>> Best wishes, Jake.
>>
>> -------------------------------------------------------
>> Old versions of LTSpice apparently use one byte to represent characters.
>> The old 'readLtsRaw.m' script would therefore use this code to read from
>> the header:
>>
>> header(linenum,charnum)= fread(fid, 1, '*uint8');
>>
>> The result is that when the new versions of LTSpice use two characters
>> (UTF16?) every second character is just reading a zero and the condition
>> checks for end of line
>> and end of header fail. Changing the code to read two bytes fixes the
>> issue. the corrected line is:
>>
>> header(linenum,charnum)= fread(fid, 1, '*uint16');
>>
>> Updated 11/22/2020
>>
>> --
>> ​Faculty do research to enhance their teaching in the lab and classroom.
>> http://cmosedu.com/jbaker/jbaker.htm
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Electric VLSI Editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to electricvlsi+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/electricvlsi/596b3426-b324-4e1e-9115-04c788cda3e9n%40googlegroups.com
> <https://groups.google.com/d/msgid/electricvlsi/596b3426-b324-4e1e-9115-04c788cda3e9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Electric VLSI Editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to electricvlsi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/electricvlsi/CAP%3DVm_PyECXDtLA_mC0SJ5BERdcWfqYm8mB_FqPh%2BQPZzbBytQ%40mail.gmail.com.

Reply via email to