I want to design and simulate schmeatics involving tubes. I have found several sites online that have available models to download. When i click on these models, i see a bunch of commands in a text format, what i assume to be spice commands that determine the behavior of that model. so what do i do with this from here? that is, what do i do with this text-like document to associate with a symbol so that i can add it to a schematic and simulate it? any help would be appreciated.
One of the websites featuring tube models has a page dedicated to using those models in LTspice. You might want to check out
--Mike
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
On Monday 07 July 2003 08:42, jamienoonan wrote: <ja> I want to design and simulate schmeatics involving tubes. I have <ja> found several sites online that have available models to download. <ja> When i click on these models, i see a bunch of commands in a text <ja> format, what i assume to be spice commands that determine the <ja> behavior of that model. so what do i do with this from here? that <ja> is, what do i do with this text-like document to associate with a <ja> symbol so that i can add it to a schematic and simulate it? any <ja> help would be appreciated. <ja> -Jamie <ja> <ja> <ja> ------------------------ Yahoo! Groups Sponsor ---------------------~--> <ja> Save on Coral Calcium. Get Better Health and <ja> Stronger Bones. Seen on TV <ja>
<ja> <ja> --------------------------------------------------------------- ------~-> <ja> <ja> To unsubscribe from this group, send an email to: <ja> LTspice-unsubscribe@... <ja> <ja> <ja> <ja> Your use of Yahoo! Groups is subject to <ja> <ja> <ja>
--
==================================================== Ramprasad Potluri, Department of Electrical & Computer Engineering, University of Kentucky, Lexington, KY - 40506, USA. Home: 1435 Nicholasville Rd., Apt. 111, Lexington, KY - 40503, USA. Ph (Res): (859) 323-9724 E-mail: potluri@... URL: ====================================================
I've noticed that most SPICE simulators allow the insertion of negative resistors and LTSpice seems to be no exception. However, when you do a Bode plot with an AC Analysis, the Real part of the current is positive and the Imaginary part of the current is zero. I have tried this with other simulators and the Real part of the current is negative and the imaginary part is zero.
?
I'm?attaching a simple circuit with a negative resistor driven by an AC voltage source that demonstrates the problem.
.
Now why I'm really interested in this is that I've done some analyses on oscillators by driving the resonator such as a crystal with a voltage source, and then plot the real and imaginary parts of the current. The condition for oscillation is that the Real part of the current in the AC voltage source should be less than zero when the Imaginary part of the AC current is zero. By sweeping the frequency it is therefore possible to see if the condition for oscillation are satisfied at any frequency.
?
While this method seems to work with LTSpice, the only problem is you cannot be sure that IM(I(V1)), if V1 is the AC source for example, is negative, as the simulator seems to?discard the sign of the real part.
I want to design and simulate schmeatics involving tubes. I have found several sites online that have available models to download. When i click on these models, i see a bunch of commands in a text format, what i assume to be spice commands that determine the behavior of that model. so what do i do with this from here? that is, what do i do with this text-like document to associate with a symbol so that i can add it to a schematic and simulate it? any help would be appreciated. -Jamie
The schematic comes up without the opamp. I just put an LT1001 in. As you say, the ground is missing. When I wired one in everything worked fine. So, of course, you were correct.
?
Regards,
????????? Steve
Panama Mike wrote:
We can't run the circuit without the file TL071.lib, but one drafting error that can be seen is that you didn't specifiy what you meant as ground with the GND(node 0) flag. Press F4, select GND(global node 0) and connect it to the bottom of Ubat and Quelle.
Normally LTspice will tell you that there's no ground connection, but perhaps the opamp model called ground so it doesn't know about the general circuit error.
--Mike
--- Bernhard_Kraemer@... wrote: > Hello, > > I have a simple OpAmp-circuit to simulate. I would like to get a .AC - Simulation from 1Hz to > 30Khz, but the simulator starts endless iterations. Depending on the Opamp-Modell I am using, > the simulation stops immediatly (this was the case for one LT- OpAmp) with the message > "Iteration limit reached", or it starts these endless iterations
and never comes to an end > (OpAmp TL071). > Ah! Another problem: For the transient analysis, I get values around 1 MegaVolt (instead of > MilliVolt)! > I wonder why the simulation doesn't run correctly, for it is a real simple circuit. I don't know > what to do now, because I don't have any experience with this kind of problems yet. > > It would be great if anyone could help me. > > Yours, > > Bernhard Krmer > > Here is the schematics : > (The TL071 circuit is attached) > > Version 4 > SHEET 1 892 692 > WIRE 352 288 240 288 > WIRE 240 368 240 288 > WIRE 240 288 160 288 > WIRE 240 288 240 208 > WIRE 32 368 32 288 > WIRE 32 288 96 288 > WIRE 416 272 544 272 > WIRE 320 368 320 256 > WIRE 320 256 352 256 > WIRE 320 256 320 192 > WIRE 320 192 432 192 > WIRE 512 192 544 192 > WIRE 544 192 544
272 > WIRE 544 272 576 272 > WIRE 320 464 320 448 > WIRE 640 272 688 272 > WIRE 688 272 688 352 > WIRE -128 368 -128 96 > WIRE -128 96 240 96 > WIRE 384 96 384 240 > WIRE 240 128 240 96 > WIRE 240 96 384 96 > WIRE 384 304 384 544 > WIRE 384 544 320 544 > WIRE -128 544 -128 448 > WIRE 32 448 32 544 > WIRE 32 544 -128 544 > WIRE 240 448 240 544 > WIRE 240 544 32 544 > WIRE 320 544 320 528 > WIRE 320 544 240 544 > WIRE 688 432 688 544 > WIRE 688 544 384 544 > SYMBOL C:\Programme\LTSpice\lib\sym\Opamps\TL071 384 208 R0 > SYMATTR InstName U1 > SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 224 112 R0 > SYMATTR InstName R1 > SYMATTR Value 1Meg > SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 224 352 R0 > SYMATTR InstName R2 > SYMATTR Value 1Meg > SYMBOL
C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 304 352 R0 > SYMATTR InstName Rvor > SYMATTR Value 22K > SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 528 176 R90 > WINDOW 0 5 56 VBottom 0 > WINDOW 3 27 56 VTop 0 > SYMATTR InstName Rgeg > SYMATTR Value 100K > SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 704 448 R180 > WINDOW 0 31 76 Left 0 > WINDOW 3 31 40 Left 0 > SYMATTR InstName Lautsprecher > SYMATTR Value 4 > SYMBOL cap 160 272 R90 > WINDOW 0 0 32 VBottom 0 > WINDOW 3 32 32 VTop 0 > SYMATTR InstName Cein > SYMATTR Value 100 > SYMBOL cap 304 464 R0 > SYMATTR InstName C2 > SYMATTR Value 47 > SYMBOL cap 640 256 R90 > WINDOW 0 0 32 VBottom 0 > WINDOW 3 32 32 VTop 0 > SYMATTR InstName Caus > SYMATTR Value 2.2mF > SYMBOL C:\Programme\LTSpice\lib\sym\voltage 32 352 R0 > WINDOW 123 24 132 Left
0 > WINDOW 39 0 0 Left 0 > SYMATTR InstName Quelle > SYMATTR Value SINE(0 100m 1K) > SYMATTR Value2 AC 100m > SYMBOL C:\Programme\LTSpice\lib\sym\voltage -128 352 R0 > SYMATTR InstName Ubat > SYMATTR Value 24 > ______________________________________________________________________________ > Schon wieder Viren-Alarm? Bei WEB.DE FreeMail ist das kein Problem, > hier ist der Virencheck inklusive! http://freemail.web.de/features/?mc=021158
> ATTACHMENT part 2 application/octet-stream name=TL071.asy
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
------------------------ Yahoo! Groups Sponsor ---------------------~--> Save on Coral Calcium. Get Better Health and Stronger Bones. Seen on
TV http://www.challengerone.com/t/l.asp?cid-2805&lp=calcium2.asp http://us.click.yahoo.com/9gf46B/EfUGAA/ySSFAA/bGYolB/TM ---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to: LTspice-unsubscribe@...
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
I didn't see a ground symbol on your schematic. When I added it, and replaced your opamp with one in my library, it seems to run ok.
?
Steve
Bernhard_Kraemer@... wrote:
Hello,
I have a simple OpAmp-circuit to simulate. I would like to get a .AC - Simulation from 1Hz to 30Khz, but the simulator starts endless iterations. Depending on the Opamp-Modell I am using, the simulation stops immediatly (this was the case for one LT- OpAmp) with the message "Iteration limit reached", or it starts these endless iterations and never comes to an end (OpAmp TL071). Ah! Another problem: For the transient analysis, I get values around 1 MegaVolt (instead of MilliVolt)! I wonder why the simulation doesn't run correctly, for it is a real simple circuit. I don't know what to do now, because I don't have any experience with this kind of problems yet.
It would be great if anyone could help me.
Yours,
? Bernhard Krmer
Here is the schematics : (The TL071 circuit is attached)
Version 4 SHEET 1 892
692 WIRE 352 288 240 288 WIRE 240 368 240 288 WIRE 240 288 160 288 WIRE 240 288 240 208 WIRE 32 368 32 288 WIRE 32 288 96 288 WIRE 416 272 544 272 WIRE 320 368 320 256 WIRE 320 256 352 256 WIRE 320 256 320 192 WIRE 320 192 432 192 WIRE 512 192 544 192 WIRE 544 192 544 272 WIRE 544 272 576 272 WIRE 320 464 320 448 WIRE 640 272 688 272 WIRE 688 272 688 352 WIRE -128 368 -128 96 WIRE -128 96 240 96 WIRE 384 96 384 240 WIRE 240 128 240 96 WIRE 240 96 384 96 WIRE 384 304 384 544 WIRE 384 544 320 544 WIRE -128 544 -128 448 WIRE 32 448 32 544 WIRE 32 544 -128 544 WIRE 240 448 240 544 WIRE 240 544 32 544 WIRE 320 544 320 528 WIRE 320 544 240 544 WIRE 688 432 688 544 WIRE 688 544 384 544 SYMBOL C:\Programme\LTSpice\lib\sym\Opamps\TL071 384 208 R0 SYMATTR InstName U1 SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 224 112 R0 SYMATTR InstName R1 SYMATTR Value
1Meg SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 224 352 R0 SYMATTR InstName R2 SYMATTR Value 1Meg SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 304 352 R0 SYMATTR InstName Rvor SYMATTR Value 22K SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 528 176 R90 WINDOW 0 5 56 VBottom 0 WINDOW 3 27 56 VTop 0 SYMATTR InstName Rgeg SYMATTR Value 100K SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 704 448 R180 WINDOW 0 31 76 Left 0 WINDOW 3 31 40 Left 0 SYMATTR InstName Lautsprecher SYMATTR Value 4 SYMBOL cap 160 272 R90 WINDOW 0 0 32 VBottom 0 WINDOW 3 32 32 VTop 0 SYMATTR InstName Cein SYMATTR Value 100 SYMBOL cap 304 464 R0 SYMATTR InstName C2 SYMATTR Value 47 SYMBOL cap 640 256 R90 WINDOW 0 0 32 VBottom 0 WINDOW 3 32 32 VTop 0 SYMATTR InstName Caus SYMATTR Value 2.2mF SYMBOL C:\Programme\LTSpice\lib\sym\voltage 32 352 R0 WINDOW 123 24 132 Left
0 WINDOW 39 0 0 Left 0 SYMATTR InstName Quelle SYMATTR Value SINE(0 100m 1K) SYMATTR Value2 AC 100m SYMBOL C:\Programme\LTSpice\lib\sym\voltage -128 352 R0 SYMATTR InstName Ubat SYMATTR Value 24 ______________________________________________________________________________ Schon wieder Viren-Alarm? Bei WEB.DE FreeMail ist das kein Problem, hier ist der Virencheck inklusive!
To unsubscribe from this group, send an email to: LTspice-unsubscribe@...
Your use of Yahoo! Groups is subject to the . > ATTACHMENT part 2 application/octet-stream name=TL071.asy
Thank you, you have seen the problem. I'm sorry, next time I should check the ground node flag first.
Thanks again,
Bernhard ____________________________________________________________________________ Nur bei WEB.DE Testsieger FreeMail testen und damit 1 qm Regenwald schuetzen. Jetzt anmelden und mithelfen!
We can't run the circuit without the file TL071.lib, but one drafting error that can be seen is that you didn't specifiy what you meant as ground with the GND(node 0) flag. Press F4, select GND(global node 0) and connect it to the bottom of Ubat and Quelle.
Normally LTspice will tell you that there's no ground connection, but perhaps the opamp model called ground so it doesn't know about the general circuit error.
--Mike
--- Bernhard_Kraemer@... wrote:
Hello,
I have a simple OpAmp-circuit to simulate. I would like to get a .AC - Simulation from 1Hz to 30Khz, but the simulator starts endless iterations. Depending on the Opamp-Modell I am using, the simulation stops immediatly (this was the case for one LT- OpAmp) with the message "Iteration limit reached", or it starts these endless iterations and never comes to an end (OpAmp TL071). Ah! Another problem: For the transient analysis, I get values around 1 MegaVolt (instead of MilliVolt)! I wonder why the simulation doesn't run correctly, for it is a real simple circuit. I don't know what to do now, because I don't have any experience with this kind of problems yet.
It would be great if anyone could help me.
Yours,
Bernhard Krmer
Here is the schematics : (The TL071 circuit is attached)
Version 4 SHEET 1 892 692 WIRE 352 288 240 288 WIRE 240 368 240 288 WIRE 240 288 160 288 WIRE 240 288 240 208 WIRE 32 368 32 288 WIRE 32 288 96 288 WIRE 416 272 544 272 WIRE 320 368 320 256 WIRE 320 256 352 256 WIRE 320 256 320 192 WIRE 320 192 432 192 WIRE 512 192 544 192 WIRE 544 192 544 272 WIRE 544 272 576 272 WIRE 320 464 320 448 WIRE 640 272 688 272 WIRE 688 272 688 352 WIRE -128 368 -128 96 WIRE -128 96 240 96 WIRE 384 96 384 240 WIRE 240 128 240 96 WIRE 240 96 384 96 WIRE 384 304 384 544 WIRE 384 544 320 544 WIRE -128 544 -128 448 WIRE 32 448 32 544 WIRE 32 544 -128 544 WIRE 240 448 240 544 WIRE 240 544 32 544 WIRE 320 544 320 528 WIRE 320 544 240 544 WIRE 688 432 688 544 WIRE 688 544 384 544 SYMBOL C:\Programme\LTSpice\lib\sym\Opamps\TL071 384 208 R0 SYMATTR InstName U1 SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 224 112 R0 SYMATTR InstName R1 SYMATTR Value 1Meg SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 224 352 R0 SYMATTR InstName R2 SYMATTR Value 1Meg SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 304 352 R0 SYMATTR InstName Rvor SYMATTR Value 22K SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 528 176 R90 WINDOW 0 5 56 VBottom 0 WINDOW 3 27 56 VTop 0 SYMATTR InstName Rgeg SYMATTR Value 100K SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 704 448 R180 WINDOW 0 31 76 Left 0 WINDOW 3 31 40 Left 0 SYMATTR InstName Lautsprecher SYMATTR Value 4 SYMBOL cap 160 272 R90 WINDOW 0 0 32 VBottom 0 WINDOW 3 32 32 VTop 0 SYMATTR InstName Cein SYMATTR Value 100 SYMBOL cap 304 464 R0 SYMATTR InstName C2 SYMATTR Value 47 SYMBOL cap 640 256 R90 WINDOW 0 0 32 VBottom 0 WINDOW 3 32 32 VTop 0 SYMATTR InstName Caus SYMATTR Value 2.2mF SYMBOL C:\Programme\LTSpice\lib\sym\voltage 32 352 R0 WINDOW 123 24 132 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName Quelle SYMATTR Value SINE(0 100m 1K) SYMATTR Value2 AC 100m SYMBOL C:\Programme\LTSpice\lib\sym\voltage -128 352 R0 SYMATTR InstName Ubat SYMATTR Value 24 ______________________________________________________________________________ Schon wieder Viren-Alarm? Bei WEB.DE FreeMail ist das kein Problem, hier ist der Virencheck inklusive!
ATTACHMENT part 2 application/octet-stream name=TL071.asy
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
I have a simple OpAmp-circuit to simulate. I would like to get a .AC - Simulation from 1Hz to 30Khz, but the simulator starts endless iterations. Depending on the Opamp-Modell I am using, the simulation stops immediatly (this was the case for one LT- OpAmp) with the message "Iteration limit reached", or it starts these endless iterations and never comes to an end (OpAmp TL071). Ah! Another problem: For the transient analysis, I get values around 1 MegaVolt (instead of MilliVolt)! I wonder why the simulation doesn't run correctly, for it is a real simple circuit. I don't know what to do now, because I don't have any experience with this kind of problems yet.
It would be great if anyone could help me.
Yours,
Bernhard Kr?mer
Here is the schematics : (The TL071 circuit is attached)
Version 4 SHEET 1 892 692 WIRE 352 288 240 288 WIRE 240 368 240 288 WIRE 240 288 160 288 WIRE 240 288 240 208 WIRE 32 368 32 288 WIRE 32 288 96 288 WIRE 416 272 544 272 WIRE 320 368 320 256 WIRE 320 256 352 256 WIRE 320 256 320 192 WIRE 320 192 432 192 WIRE 512 192 544 192 WIRE 544 192 544 272 WIRE 544 272 576 272 WIRE 320 464 320 448 WIRE 640 272 688 272 WIRE 688 272 688 352 WIRE -128 368 -128 96 WIRE -128 96 240 96 WIRE 384 96 384 240 WIRE 240 128 240 96 WIRE 240 96 384 96 WIRE 384 304 384 544 WIRE 384 544 320 544 WIRE -128 544 -128 448 WIRE 32 448 32 544 WIRE 32 544 -128 544 WIRE 240 448 240 544 WIRE 240 544 32 544 WIRE 320 544 320 528 WIRE 320 544 240 544 WIRE 688 432 688 544 WIRE 688 544 384 544 SYMBOL C:\Programme\LTSpice\lib\sym\Opamps\TL071 384 208 R0 SYMATTR InstName U1 SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 224 112 R0 SYMATTR InstName R1 SYMATTR Value 1Meg SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 224 352 R0 SYMATTR InstName R2 SYMATTR Value 1Meg SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 304 352 R0 SYMATTR InstName Rvor SYMATTR Value 22K SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 528 176 R90 WINDOW 0 5 56 VBottom 0 WINDOW 3 27 56 VTop 0 SYMATTR InstName Rgeg SYMATTR Value 100K SYMBOL C:\Programme\LTSpice\lib\sym\Misc\EuropeanResistor 704 448 R180 WINDOW 0 31 76 Left 0 WINDOW 3 31 40 Left 0 SYMATTR InstName Lautsprecher SYMATTR Value 4 SYMBOL cap 160 272 R90 WINDOW 0 0 32 VBottom 0 WINDOW 3 32 32 VTop 0 SYMATTR InstName Cein SYMATTR Value 100? SYMBOL cap 304 464 R0 SYMATTR InstName C2 SYMATTR Value 47? SYMBOL cap 640 256 R90 WINDOW 0 0 32 VBottom 0 WINDOW 3 32 32 VTop 0 SYMATTR InstName Caus SYMATTR Value 2.2mF SYMBOL C:\Programme\LTSpice\lib\sym\voltage 32 352 R0 WINDOW 123 24 132 Left 0 WINDOW 39 0 0 Left 0 SYMATTR InstName Quelle SYMATTR Value SINE(0 100m 1K) SYMATTR Value2 AC 100m SYMBOL C:\Programme\LTSpice\lib\sym\voltage -128 352 R0 SYMATTR InstName Ubat SYMATTR Value 24 ______________________________________________________________________________ Schon wieder Viren-Alarm? Bei WEB.DE FreeMail ist das kein Problem, hier ist der Virencheck inklusive!
Oh, yes, now I see the problem. There was a problem introduced. If you add the line ".param R=5K" the circuit will fail but the line2 ".param" or ".param R=5K nix=3K" will not cause it to fail. There be an update next week(we're on vacation today and tomorrow) that will also accept the old syntax.
Thanks for reporting the problem.
--Mike
--- analogspiceman <analogspiceman@...> wrote:
Panama Mike, analog wrote:
One of my favorite features is hobbled. :( :( Mike, please make it whole again.
Version 2.03r June 30th.
I didn't know that it was broken. There was recent change to make globally .step'ed parameters accessible in subcircuits if not defined at a more local scope, so maybe something else broke when I fixed that. Can you e-mail an example that shows the problem? Here's a deck that would indicate that parameter stepping works:
When param stepping suddenly went lame in circuit file at work where it used to run like a champ, the first thing I did was to make up a test circuit *almost* exactly like the working example you just listed. And it didn't run.
The key difference seems to be that my file includes the following additional spice command: ".param R=1k".
This seemingly unnecessary "double definition" was required in Pspice syntax and never used to trip up LTspice. Seems like you might want to maintain the Pspice compatibility. But whatever you do, I'm still going to think LTspice is the greatest (lame jokes aside).
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
One of my favorite features is hobbled. :( :( Mike, please make it whole again.
Version 2.03r June 30th.
I didn't know that it was broken. There was recent change to make globally .step'ed parameters accessible in subcircuits if not defined at a more local scope, so maybe something else broke when I fixed that. Can you e-mail an example that shows the problem? Here's a deck that would indicate that parameter stepping works:
When param stepping suddenly went lame in circuit file at work where it used to run like a champ, the first thing I did was to make up a test circuit *almost* exactly like the working example you just listed. And it didn't run.
The key difference seems to be that my file includes the following additional spice command: ".param R=1k".
This seemingly unnecessary "double definition" was required in Pspice syntax and never used to trip up LTspice. Seems like you might want to maintain the Pspice compatibility. But whatever you do, I'm still going to think LTspice is the greatest (lame jokes aside).
Re: Not even limping, parameter stepping now lame and refuses to budge!
One of my favorite features is hobbled. :( :( Mike, please make it whole again.
Version 2.03r June 30th.
I didn't know that it was broken. There was recent change to make globally .step'ed parameters accessible in subcircuits if not defined at a more local scope, so maybe something else broke when I fixed that. Can you e-mail an example that shows the problem? Here's a deck that would indicate that parameter stepping works:
PS: I noticed that LTspice parses ".aliases" and ".endalises" but doesn't seem to make use of the information in the waveform viewer. Is this just there for Pspice compatibility or does the command do anything?
The commands are "recognized" in that they don't cause errors, but otherwise ignored.
--Mike
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
One of my favorite features is hobbled. :( :( Mike, please make it whole again.
Version 2.03r June 30th.
Thanks.
PS: I noticed that LTspice parses ".aliases" and ".endalises" but doesn't seem to make use of the information in the waveform viewer. Is this just there for Pspice compatibility or does the command do anything?
Re: Bug in "Help" files? (Re: Bug in "Waveform Arithmetic"?)
These functions are now available in the waveform compiler in version 2.03r. Thanks again for pointing out the problem.
--Mike
--- Dale <dchishol@...> wrote:
I checked the "Help". On my installation (ver 2.03q, 27 Jun 2003) the topic called "Waveform Arithmetic" includes some sexy full-color screen captures and most definitely lists :
" int(x) | convert x to integer floor(x) | integer equal or less than x ceil(x) | integer equal or greater than x "
among the allowed functions.
The topic for "G. Voltage Dependent Current Source" is a little bit ambiguous; the fourth form of syntax is described as :
"Syntax: Gxxx n+ n- value={<expression>}
This is an alternative syntax of the behavioral source, arbitrary behavioral voltage source, B. "
which I took to mean that any expression legal for a "B" source could also be used for the "G" source.
Certainly, the program behavior I observed is not entirely consistent with the "Help" file content but I'm not sure which is correct.
Dale
--- In LTspice@..., "analogspiceman" <analogspiceman@y...> wrote:
--- In LTspice@..., "Dale" <dchishol@c...> wrote:
When entering a waveform expression using the "int()", "ceil()" or "floor()" functions I get error messages that "int" (or "ceil" or "floor") is an undefined symbol. For the record, the expression I'm entering is:
int(32*V(3)/(2*pi))
and "V(3)" is a valid node voltage in my simulation.
Am I doing something wrong, or is this a program bug?
Thanks for suggestions Dale
p.s. - I've also had problems using the sgn() function in expressions for the "F" and "G" sources, though it seems to work with "B" sources.
Hello,
The functions you named are not valid for waveform arithmetic and may only be used in behavioral sources. Check the help file. Or better still, check my included crib sheet which contains many functions not listed in the help file as well several corrections to errors there.
> - - - Remainder Truncated - - - <
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Re: Bug in "Help" files? (Re: Bug in "Waveform Arithmetic"?)
It was error in the help file. Those functions were never part of the waveform expression compiler. But I'll add them. There's be an update next week that will include them for real waveform math so the program matches the help.
Thanks for pointing out the problem.
--Mike
--- Dale <dchishol@...> wrote:
I checked the "Help". On my installation (ver 2.03q, 27 Jun 2003) the topic called "Waveform Arithmetic" includes some sexy full-color screen captures and most definitely lists :
" int(x) | convert x to integer floor(x) | integer equal or less than x ceil(x) | integer equal or greater than x "
among the allowed functions.
The topic for "G. Voltage Dependent Current Source" is a little bit ambiguous; the fourth form of syntax is described as :
"Syntax: Gxxx n+ n- value={<expression>}
This is an alternative syntax of the behavioral source, arbitrary behavioral voltage source, B. "
which I took to mean that any expression legal for a "B" source could also be used for the "G" source.
Certainly, the program behavior I observed is not entirely consistent with the "Help" file content but I'm not sure which is correct.
Dale
--- In LTspice@..., "analogspiceman" <analogspiceman@y...> wrote:
--- In LTspice@..., "Dale" <dchishol@c...> wrote:
When entering a waveform expression using the "int()", "ceil()" or "floor()" functions I get error messages that "int" (or "ceil" or "floor") is an undefined symbol. For the record, the expression I'm entering is:
int(32*V(3)/(2*pi))
and "V(3)" is a valid node voltage in my simulation.
Am I doing something wrong, or is this a program bug?
Thanks for suggestions Dale
p.s. - I've also had problems using the sgn() function in expressions for the "F" and "G" sources, though it seems to work with "B" sources.
Hello,
The functions you named are not valid for waveform arithmetic and may only be used in behavioral sources. Check the help file. Or better still, check my included crib sheet which contains many functions not listed in the help file as well several corrections to errors there.
> - - - Remainder Truncated - - - <
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
Bug in "Help" files? (Re: Bug in "Waveform Arithmetic"?)
I checked the "Help". On my installation (ver 2.03q, 27 Jun 2003) the topic called "Waveform Arithmetic" includes some sexy full-color screen captures and most definitely lists :
" int(x) | convert x to integer floor(x) | integer equal or less than x ceil(x) | integer equal or greater than x "
among the allowed functions.
The topic for "G. Voltage Dependent Current Source" is a little bit ambiguous; the fourth form of syntax is described as :
"Syntax: Gxxx n+ n- value={<expression>}
This is an alternative syntax of the behavioral source, arbitrary behavioral voltage source, B. "
which I took to mean that any expression legal for a "B" source could also be used for the "G" source.
Certainly, the program behavior I observed is not entirely consistent with the "Help" file content but I'm not sure which is correct.
Dale
--- In LTspice@..., "analogspiceman" <analogspiceman@y...> wrote:
--- In LTspice@..., "Dale" <dchishol@c...> wrote:
When entering a waveform expression using the "int()", "ceil()" or "floor()" functions I get error messages that "int" (or "ceil" or "floor") is an undefined symbol. For the record, the expression I'm entering is:
int(32*V(3)/(2*pi))
and "V(3)" is a valid node voltage in my simulation.
Am I doing something wrong, or is this a program bug?
Thanks for suggestions Dale
p.s. - I've also had problems using the sgn() function in expressions for the "F" and "G" sources, though it seems to work with "B" sources.
Hello,
The functions you named are not valid for waveform arithmetic and may only be used in behavioral sources. Check the help file. Or better still, check my included crib sheet which contains many functions not listed in the help file as well several corrections to errors there.
--- In LTspice@..., "analogspiceman" <analogspiceman@y...> wrote: ...
The functions you named are not valid for waveform arithmetic and may only be used in behavioral sources. Check the help file. Or better still, check my included crib sheet which contains many functions not listed in the help file as well several corrections to errors there.
[cut mangled text]
Well, that text still had all the white space when I previewed it! I guess Yahoo Groups removes white space. Will have to repost the crib sheet in the files section.
--- In LTspice@..., "Dale" wrote: > When entering a waveform expression using the "int()", "ceil()" or > "floor()" functions I get error messages that "int" (or "ceil" or > "floor") is an undefined symbol.? For the record, the expression I'm > entering is: > > int(32*V(3)/(2*pi)) > > and "V(3)" is a valid node voltage in my simulation. > > Am I doing something wrong, or is this a program bug? > > Thanks for suggestions > Dale > > p.s. -? I've also had problems using the sgn() function in > expressions for the "F" and "G" sources, though it seems to work > with "B" sources.
Hello,
The functions you named are not valid for waveform arithmetic and may only be used in behavioral sources.? Check the help
file.? Or better still, check my included crib sheet which contains many functions not listed in the help file as well several corrections to errors there.
The difference of two voltages; e.g., V(a)-V(b); can equivalently written as V(a,b).? The following functions are available (r denotes real data only, c denotes complex data only):
????????????? Name? | Function -------------------+----------------------------- ???????????? sin(x) | sine ???????????? cos(x) | cosine ???????????? tan(x) | tangent ??????????? asin(x) | arc
sine ??????????? acos(x) | arc cosine ??????????? atan(x) | arc tangent ???????? atan2(y,x) r arc tangent of y/x ???????? hypot(y,x) r hypotenuse: sqrt(x*x+y*y) ??????????? sinh(x) | hyperbolic sine ??????????? cosh(x) | hyperbolic cosine ??????????? tanh(x) | hyperbolic tangent ?????????? asinh(x) | arc hyperbolic sine ?????????? acosh(x) | arc hyperbolic cosine ?????????? atanh(x) | arc hyperbolic
tangent ???????????? exp(x) | exponential ??? ln(x) or log(x) | natural logarithm ?????????? log10(x) | base 10 logarithm ???????????? sgn(x) r sign (0 if x = 0) ??????????? fabs(x) r absolute value ???????????? abs(x) | absolute value ??????????? sqrt(x) | square root ??????????? cbrt(x) | cube root ?????????? pow(x,y) r x**y ?????????? pwr(x,y) r abs(x)**y ????????? pwrs(x,y) r
sgn(x)*abs(x)**y ?????????? min(x,y) r the lesser of x or y ?????????? max(x,y) r the greater of x or y ?????? limit(x,y,z) r equivalent to min(max(x,y),z) ? table(x,x1,y1...) r interpolate values for x ??? where: x1??????????????????? r?? of x-ordered point pairs ?????????? uramp(x) r x if x > 0, else 0 ?????????????? u(x) r unit step: 1 if x > 0, else 0 ???????????? buf(x) r 1 if x > .5, else 0 ???? !(x) or inv(x) r 0 if x > .5, else
1 ??????????? rand(x) r random number between 0 and 1? ????????????? re(x) c real part ????????????? im(x) c imaginary part ????????????? ph(x) c phase ???????????? mag(x) c magnitude ????????????? db(x) c magnitude in dB ?????????? invdb(x) c 10**(x/20)
Waveform Arithmetic (continued):
The following operations, grouped in order of precedence of evaluation (for complex data only +, -, *, /, and ** are available):
? Symbol |
Operation --------+-------------------------------------------------- ???? !?? | convert succeeding expression to Boolean then ???????? |?? invert ??? **?? | floating point exponentiation --------+-------------------------------------------------- ???? /?? | floating point division ???? *?? | floating point multiplication ???? %?? | floating point modulus (real data only) --------+-------------------------------------------------- ???? -?? | floating point subtraction ???? +?? | floating point addition --------+-------------------------------------------------- ??? ==?? | true if preceding expression is equal to ????????
|?? succeeding expression, otherwise false ??? >=?? | true if preceding expression is greater than or ???????? |?? equal to succeeding expression, otherwise false ??? <=?? | true if preceding expression is less than or ???????? |?? equal to succeeding expression, otherwise false ???? >?? | true if preceding expression is greater than ???????? |?? succeeding expression, otherwise false ???? <?? | true if preceding expression is less than ???????? |?? succeeding expression, otherwise false --------+-------------------------------------------------- ???? ^?? | convert adjacent expressions to
Boolean then XOR ???? |?? | convert adjacent expressions to Boolean then OR ???? &?? | convert adjacent expressions to Boolean then AND
True is numerically equal to 1 and False is 0.? Conversion to Boolean converts a value to 1 if the value is greater than 0.5, otherwise the value is converted to 0.
The following keywords (global variables and constants):
?? Name? |???? Value???? | Description ---------+---------------+---------------------------------- ? time?? |??? variable?? | time in seconds (real data only) ? freq?? |??? variable?? | freq in Hertz?? (cmplx data only) ??? w??? |??? variable?? | freq in radians (cmplx data only) ??? i???
|? sqrt(-1)???? | imaginary unity (cmplx data only) ??? e??? |? 2.71828????? | ?? pi??? |? 3.14159????? | ??? c??? |? 2.99792e+008 | speed of light in m/s ? boltz? |? 1.38062e-023 | Boltzmann constant planck? |? 6.62620e-034 | Planck's constant echarge |? 1.60219e-019 | charge of an electron kelvin? | -2.73150e+002 | absolute zero in degrees C
B.? Arbitrary behavioral voltage or current sources.