• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. PCB Design
  3. read & write from C++

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 164
  • Views 1037
  • Members are here 0
More Content
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

read & write from C++

Sohrab
Sohrab over 13 years ago

Hi,

I build a .cir file and run it through C++ by calling SPICE.

then I want to read the results for a voltage variable. The problem is the precision of the output.

.out file has a limited precision, even by setting .OPTIONS NUMDGT, the precision is limited to 15 digits.

Is it any "command line option" to make the SPICE save the results as .xls or .dat file, or somehow with better precision?!

 

 

  • Cancel
  • oldmouldy
    oldmouldy over 13 years ago
    Pretty sure that PSpice will have maxed out at 15 digit precision given the likely target application area. If you really need more precision, you probably need to look to another SPICE implemantation.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Alok Tripathi
    Alok Tripathi over 13 years ago
    What level of precision you are looking for? Is 15 digit less?

    You can not directly write .xls at simulation time. However one can export the simulation results in csv format from PSpice after loading the simulation result (.dat file)
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information