Simulator

Does Flux support circuit simulation?

Yes, Flux Copilot offers a SPICE Simulator tool (currently in beta) that allows you to quickly verify circuit behavior, troubleshoot design issues, and optimize component values directly from the Copilot chat interface. Learn more about the @simulator tool.

How do I run a simulation?

Use the Copilot Simulator tool by typing @simulator in the chat interface followed by your simulation request. The tool will guide you through the process and handle the simulation automatically.

Can I pause the simulation while it is running?

There is no way to pause the simulator. We want simulating in Flux to feel like your workbench. The real world doesn’t go on pause - when you plug in a wire, electricity flows. Same is true in Flux, assuming you have simulation models for each part.

Can I program a microcontroller in the simulator?

No. Currently, the code editor in Flux is focused solely on creating simulation models for non-programmable parts, such as resistors, op-amps, diodes etc. (you can find simulation primitives here). However, Flux is looking to expand the simulations capabilities in the future and the ability to program chips is a feature that is on our radar!

One or more parts is missing a simulation model

In order for a project to run a simulation, all of the parts on the schematic must have a simulation model. If there are parts that don't have a simulation model, a warning will appear in the project Simulation panel stating the following: 1 part is missing a simulation model.

  • Check if a part has a simulation model by clicking on the part and looking at the Simulation panel in the Inspector on the right-hand side. If it doesn't have a simulation model, it will show an error like this: LED-0402-Template does not have a simulation model. Debug.
  • To solve this, you can reach out to the owner of the part and ask them to write a model for it.
  • To make sure you're using parts that have simulation models, use a filter when searching for parts. Click the "<>" icon below the Part Search field. Then, the results will only contain parts with simulation models.

The simulation model is crashing due to a specific part. 🔥

It's possible that a part can have a simulation model that is incorrectly implemented. Flux can tell that this part is suppose to be simulating, but that something is going wrong. If this is the case, the following error will be displayed in the project's Simulation panel: The 0.1μF Capacitor model crashed the simulator. Debug.

  • To solve this issue, click the Debug link to be directed to the specific part that's having the issue.
  • Then, either ask the part owner to correct the issue or correct it yourself.
  • To correct it yourself, clone or fork the part, and then visit the Code tab of the part. There, you can locate the issue and write a solution.

###

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard