Author Topic: Simulation consumption  (Read 1751 times)

0 Members and 1 Guest are viewing this topic.

Offline PlainNameTopic starter

  • Super Contributor
  • ***
  • Posts: 7203
  • Country: va
Simulation consumption
« on: May 12, 2021, 10:34:48 pm »
I'm looking at moving to Altium for simulation, since I'm using that for designing PCBs. Previously I've run stuff up in Proteus so perhaps I'm spoiled or, hopefully, I'm just missing how to accomplist stuff...

First, I want to embed the simulation output - the chart - in the schematic, so I can document what the signal at whatever point should look like. A lengthy google and a fair amount of time pressing this, selecting that, and the best I can manage is to print to a virtual printer then insert that as a graphic. With Proteus you place a chart object and the simulation plots to that. Easy peasy.

Next, there are two states of the circuit and I want to capture each. So that means changing a component value (or input signal) and resimulating. Trouble is that I seem to be only able to have one simulation chart for the project, named <project>.sdf. Can't even save that as a different name so I can re-run the simulation into a new chart.

Those are the biggies at the moment. Haven't found how to rename the traces ('NetU1_3') to something meaningful ('Output'), but that's minor...
 

Offline alexwhittemore

  • Frequent Contributor
  • **
  • Posts: 365
Re: Simulation consumption
« Reply #1 on: May 13, 2021, 05:32:01 pm »
First, I want to embed the simulation output - the chart - in the schematic, so I can document what the signal at whatever point should look like. A lengthy google and a fair amount of time pressing this, selecting that, and the best I can manage is to print to a virtual printer then insert that as a graphic. With Proteus you place a chart object and the simulation plots to that. Easy peasy.

Not sure what the virtual printer stuff is about, but I'd go so far as to say your only option is to screenshot the output waveform and paste in a static .jpg, which I think is what you're getting at. Are you saying Proteus allows you to embed dynamically-updating simulation output on the schematic? Altium will show you DC operating point outputs directly in schematic, but that's it, and I don't think you can persist that or anything.

Quote
Next, there are two states of the circuit and I want to capture each. So that means changing a component value (or input signal) and resimulating. Trouble is that I seem to be only able to have one simulation chart for the project, named <project>.sdf. Can't even save that as a different name so I can re-run the simulation into a new chart.

That .sdf file can contain multiple charts in all sorts of formats whichever way you want them presented. Though I'm no expert on setting that up. I usually just plot all the waveforms I'm interested in on one chart, and it'll auto-add axes to that chart if necessary.

Quote
Haven't found how to rename the traces ('NetU1_3') to something meaningful ('Output'), but that's minor...
Pretty sure the only way to do that is to actually rename the net in schematic with a net label. (One of my altium pet-peeves is that you CANNOT rename nets without a label, which really clutters your schematic in some circumstances)
 

Offline PlainNameTopic starter

  • Super Contributor
  • ***
  • Posts: 7203
  • Country: va
Re: Simulation consumption
« Reply #2 on: May 13, 2021, 06:22:55 pm »
Quote
option is to screenshot the output waveform and paste in a static .jpg

Yeah, the printing is another way of doing that. I use Fineprint, so any printer output is intercepted and I can then save as pdf, image, delete pages, add letterheads, and then actually print or dump. Saves a ton of paper and ink :)

Quote
Are you saying Proteus allows you to embed dynamically-updating simulation output on the schematic?

Yep. Attached is a print of a 555 circuit (missing pulse detector) showing two charts: top is from signal injector putting in a squarewave, bottom is the injector putting in a custom waveform. These charts are set to not auto-update (since I don't want one changing when I alter the input paramaters to generate the other), but the default is to auto-update.

And I realised the custom signal is pretty cool to use, so included a screen cap of that. Just click where you want a transition and it joins the dots then output that waveform. Really very nice indeed.

Quote
That .sdf file can contain multiple charts in all sorts of formats

Ah, I need to look into that a bit closer then. Could be a good part of the solution I'm after.

Quote
Pretty sure the only way to do that is to actually rename the net in schematic with a net label.

Sounds logical now you say it. I renamed the probe and anything that was changeable about it, but not the net. Duh.

Thanks for your help  :-+
 

Offline alexwhittemore

  • Frequent Contributor
  • **
  • Posts: 365
Re: Simulation consumption
« Reply #3 on: May 13, 2021, 06:32:59 pm »
Huh, interesting feature! I can imagine that being useful.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22386
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Simulation consumption
« Reply #4 on: May 13, 2021, 07:37:50 pm »
A tiny note: use PNG, it's lossless and compresses better on line drawings anyway.

No, there's no automated way to embed that; Altium is primarily a graphical and netlist system, the simulation feels rather tacked on honestly (not sure when it was added, did PCAD have SPICE?).

Whereas others, the simulation is more front-and-center; Multisim (formerly Electronics Workbench) started as simulation I think.  Maybe Proteus had a similar trajectory.


Can't even save that as a different name so I can re-run the simulation into a new chart.

You can rename the chart itself!  It won't overwrite differently named charts.  Check the menus or right-click in the chart area.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline PlainNameTopic starter

  • Super Contributor
  • ***
  • Posts: 7203
  • Country: va
Re: Simulation consumption
« Reply #5 on: May 13, 2021, 09:30:51 pm »
Quote
A tiny note: use PNG, it's lossless and compresses better on line drawings anyway.

Thanks for the reminder. I automatically use jpeg for the size but, as you say, sometimes it's not appropriate.

Quote
You can rename the chart itself!  It won't overwrite differently named charts.

Looks like it's just getting into the mindset of the developers idea of a user, and it will get easier :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf