<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ltwiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=203.6.243.42</id>
	<title>LTwiki-Wiki for LTspice - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://ltwiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=203.6.243.42"/>
	<link rel="alternate" type="text/html" href="http://ltwiki.org/index.php?title=Special:Contributions/203.6.243.42"/>
	<updated>2026-04-03T23:10:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.7</generator>
	<entry>
		<id>http://ltwiki.org/index.php?title=Hints_on_using_individual_LTspice_commands_and_things_the_Help_Manual_sometimes_may_not_help_you_with&amp;diff=85</id>
		<title>Hints on using individual LTspice commands and things the Help Manual sometimes may not help you with</title>
		<link rel="alternate" type="text/html" href="http://ltwiki.org/index.php?title=Hints_on_using_individual_LTspice_commands_and_things_the_Help_Manual_sometimes_may_not_help_you_with&amp;diff=85"/>
		<updated>2009-08-10T02:04:14Z</updated>

		<summary type="html">&lt;p&gt;203.6.243.42: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Add items as subpages (rather than details at this page level)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== .Param and Curly Brackets ==&lt;br /&gt;
.param&lt;br /&gt;
&lt;br /&gt;
One of the more confusing aspects of using .param (at least when I began using LT) was where and when do you use the curly barckets {} ?&lt;br /&gt;
&lt;br /&gt;
Beginning with the simplest definition, LT doesn&amp;#039;t require curly brackets &lt;br /&gt;
&lt;br /&gt;
.param res1 = 1000&lt;br /&gt;
&lt;br /&gt;
This could be used to define a resistor of 1000 Ohms &lt;br /&gt;
&lt;br /&gt;
However, in the real world, a parameter sometimes needs to be defined from other parameters.&lt;br /&gt;
&lt;br /&gt;
To get results and not pull errors within LT, it becomes useful to use curly brackets.&lt;br /&gt;
Without them - you can only nest (calculated) .param values, one parameter calculation deep.&lt;br /&gt;
&lt;br /&gt;
Going any deeper (where one calculation depends on another etc) will invite LTspice to complain with an error.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Correct Method  { doesn&amp;#039;t pull errors }&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;/nowiki&amp;gt; Comment line : Calculate capacitance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt; -------------------------------------&lt;br /&gt;
&lt;br /&gt;
.param length = {3e-2}&lt;br /&gt;
 &lt;br /&gt;
.param width  = {4e-3}&lt;br /&gt;
&lt;br /&gt;
.param area = {length * width}&lt;br /&gt;
&lt;br /&gt;
.param gap = {40e-6}&lt;br /&gt;
&lt;br /&gt;
.param Eo = {8.85e-12}&lt;br /&gt;
&lt;br /&gt;
.param Capa = { (Eo * gap) / area}&lt;br /&gt;
&lt;br /&gt;
.MEAS Capa_  PARAM Capa&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The answer (from the error log ) is:&lt;br /&gt;
capa_: capa=2.95e-012&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To see the results in LTspice &lt;br /&gt;
Use the Error Log (a better name would have been the results log) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Incorrect method (pulls errors)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
.param length = 3e-2 &lt;br /&gt;
&lt;br /&gt;
.param width  = 4e-3&lt;br /&gt;
&lt;br /&gt;
.param area = length * width&lt;br /&gt;
&lt;br /&gt;
.param gap = 40e-6&lt;br /&gt;
&lt;br /&gt;
.param Eo = 8.85e-12&lt;br /&gt;
&lt;br /&gt;
.param Cap =  (Eo * gap) / area&lt;br /&gt;
&lt;br /&gt;
.MEAS Capa_  PARAM Capa&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Error:&lt;br /&gt;
Measurement &amp;quot;capa_&amp;quot; FAIL&amp;#039;ed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The quickest way to check a calculation before you commit it to a library &lt;br /&gt;
is to create a section of text within the LT schematic. &lt;br /&gt;
Set the text as LTspice directive (command) , &lt;br /&gt;
then run the schematic &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Finding the measure results of a simulation&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
Check your results in the error log &lt;br /&gt;
Found from the toolbar :&lt;br /&gt;
View/Spice error Log &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Suggestion:&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
Set the Tools/Control panel/ Operation / Generate Expanded Listing &lt;br /&gt;
and tick (yes) to see a more comprehensive output listing - helps with debugging&lt;/div&gt;</summary>
		<author><name>203.6.243.42</name></author>
		
	</entry>
	<entry>
		<id>http://ltwiki.org/index.php?title=Hints_on_using_individual_LTspice_commands_and_things_the_Help_Manual_sometimes_may_not_help_you_with&amp;diff=84</id>
		<title>Hints on using individual LTspice commands and things the Help Manual sometimes may not help you with</title>
		<link rel="alternate" type="text/html" href="http://ltwiki.org/index.php?title=Hints_on_using_individual_LTspice_commands_and_things_the_Help_Manual_sometimes_may_not_help_you_with&amp;diff=84"/>
		<updated>2009-08-10T02:00:18Z</updated>

		<summary type="html">&lt;p&gt;203.6.243.42: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Add items as subpages (rather than details at this page level)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== .Param and Curly Brackets ==&lt;br /&gt;
.param&lt;br /&gt;
&lt;br /&gt;
One of the more confusing aspects of using .param (at least when I began using LT) was where and when do you use the curly barckets {} ?&lt;br /&gt;
&lt;br /&gt;
Beginning with the simplest definition, LT doesn&amp;#039;t require curly brackets &lt;br /&gt;
&lt;br /&gt;
.param res1 = 1000&lt;br /&gt;
&lt;br /&gt;
This could be used to define a resistor of 1000 Ohms &lt;br /&gt;
&lt;br /&gt;
However, in the real world, a parameter sometimes needs to be defined from other parameters.&lt;br /&gt;
&lt;br /&gt;
To get results and not pull errors within LT, it becomes useful to use curly brackets.&lt;br /&gt;
Without them - you can only nest (calculated) .param values, one parameter calculation deep.&lt;br /&gt;
&lt;br /&gt;
Going any deeper (where one calculation depends on another etc) will invite LTspice to complain with an error.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Correct Method  { doesn&amp;#039;t pull errors }&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
*&amp;lt;/nowiki&amp;gt; Comment line : Calculate capacitance&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt; -------------------------------------&lt;br /&gt;
&lt;br /&gt;
.param length = {3e-2}&lt;br /&gt;
 &lt;br /&gt;
.param width  = {4e-3}&lt;br /&gt;
&lt;br /&gt;
.param area = {length * width}&lt;br /&gt;
&lt;br /&gt;
.param gap = {40e-6}&lt;br /&gt;
&lt;br /&gt;
.param Eo = {8.85e-12}&lt;br /&gt;
&lt;br /&gt;
.param Capa = { (Eo * gap) / area}&lt;br /&gt;
&lt;br /&gt;
.MEAS Capa_  PARAM Capa&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The answer (from the error log ) is:&lt;br /&gt;
capa_: capa=2.95e-012&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To see the results in LTspice &lt;br /&gt;
Use the Error Log (a better name would have been the results log) &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Incorrect method (pulls errors)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
.param length = 3e-2 &lt;br /&gt;
&lt;br /&gt;
.param width  = 4e-3&lt;br /&gt;
&lt;br /&gt;
.param area = length * width&lt;br /&gt;
&lt;br /&gt;
.param gap = 40e-6&lt;br /&gt;
&lt;br /&gt;
.param Eo = 8.85e-12&lt;br /&gt;
&lt;br /&gt;
.param Cap =  (Eo * gap) / area&lt;br /&gt;
&lt;br /&gt;
.MEAS Capa_  PARAM Capa&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Error:&lt;br /&gt;
Warning Can&amp;#039;t resolve .param cap=(eo * gap)area)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The quickest way to check a calculation before you commit it to a library &lt;br /&gt;
is to create a section of text within the LT schematic. &lt;br /&gt;
Set the text as LTspice directive (command) , &lt;br /&gt;
then run the schematic &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Finding the measure results of a simulation&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
Check your results in the error log &lt;br /&gt;
Found from the toolbar :&lt;br /&gt;
View/Spice error Log &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Suggestion:&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
Set the Tools/Control panel/ Operation / Generate Expanded Listing &lt;br /&gt;
and tick (yes) to see a more comprehensive output listing - helps with debugging&lt;/div&gt;</summary>
		<author><name>203.6.243.42</name></author>
		
	</entry>
</feed>