Author Topic: Orcad Capture - repeating design with spreadsheet.... can it be done?  (Read 2653 times)

0 Members and 1 Guest are viewing this topic.

Offline Stupid BearTopic starter

  • Contributor
  • Posts: 24
  • Country: us
I am working on a board that has a repeating circuit involving several relays, diodes and resistors. This is repeated about 60 times. Each has a net that turns on the relays and nets that correspond to the circuit pins for NO and NC on the relays. Is there a way to have the 60 instances of the circuit block driven by a spreadsheet, such that I would only have to specify which nets go to each block instead of having to actually create all 60 blocks on my schematic page(s).
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26907
  • Country: nl
    • NCT Developments
Re: Orcad Capture - repeating design with spreadsheet.... can it be done?
« Reply #1 on: December 10, 2023, 04:49:28 pm »
You can export / import schematics as XML. So if you export an XML with 1 block and use some scripting to expand that schematic to have the number of instances you need, it might be doable. I don't know if this is effective time wise, but scripting sure does help to prevent mistakes so it is worthwhile to persue to avoid needing to spend time on a board respin / debugging. Python is likely a good choice as there are libraries available to deal with XML files in an easy way. I have used the XML export / import function in Orcad Capture to do mass font size modifications (search & replace) to make a schematic more readable.
« Last Edit: December 10, 2023, 07:53:47 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf