Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

I can't seem to figure out how to make a subcircuit

2 posters

Go down  Message [Page 1 of 1]

jbs30000



So, I've tried with three different versions of SimulIde but apparently I'm not doing something right.

For a test subcircuit I made voltage divider using the Function component as seen in the first image.  The second image shows the subcircuit and an identical Function component being used.  As you can see, the subcircuit has no output.

I can't seem to figure out how to make a subcircuit Volt_d12

I can't seem to figure out how to make a subcircuit Volt_d11

arcachofo

arcachofo

Hi.

In your first image, those tunnels have no name.
Set the property "Name", you will see it inside the tunnel.


jbs30000



I could have sworn I gave them names, but yeah, I guess I didn't. Thanks.

jbs30000



Now it works, but instead of returning 2.5 it returns -2.14748E+07V. The function is the same in both Function components, vo=(vi0*0.5).

arcachofo

arcachofo

Can you share the .simu file of the subcircuit?

And... which simulide version are you using?

jbs30000



I'm using the 0.4.15.

I've uploaded the simu and both packages in the zip file.
Attachments
I can't seem to figure out how to make a subcircuit AttachmentVGates.zip
You don't have permission to download attachments.
(2 Kb) Downloaded 3 times

arcachofo

arcachofo

The origin of the problem is Function component being "Main Component".
I will have a look why this happens.

In the meanwhile a workaround is deselecting Funtion as Main Component:
- Right-click on package -> "Select Main Component -> click on Function Component.
- Save Volt_Div.simu
- close simulide and open again.

BTW: you only set a "Main Component" if you need to access it's menu, for example in case of MCUs inside a Subcircuit you might want to load an hex file or open Serial Monitor.

jbs30000



Setting it as a main component was a desperation move, since nothing else seemed to work (not realizing that I didn't name the tunnels Embarassed)
Anyway, thank you for the help.

arcachofo

arcachofo

Setting it as a main component was a desperation move, since nothing else seemed to work (not realizing that I didn't name the tunnels)
Well... thanks to that we found a new bug, so it was useful.

Thanks to you for reporting.

jbs30000



Glad I could help.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum