• 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. RF Design
  3. How to append a plot from a .csv file on to an already WaveScan...

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 63
  • Views 6674
  • Members are here 0
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

How to append a plot from a .csv file on to an already WaveScan/ViVA plot

RFStuff
RFStuff over 5 years ago

Dear All,

I have a .csv file with x column (1st column for x-axis values) and y column (2nd column for y-axis values).

I have plotted already a waveform in wavescan/Viva.

The .csv file is having same x and y units as that of wavescan/Viva.

Is there any way I can append the plot of the .csv file onto the wave in ViVA ?

Could anybody please help me in this regard.

Kind Regards.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    So you want to concatenate two waveforms (did I understand you correctly)? You could use this custom function to concatenate the two.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 5 years ago in reply to Andrew Beckett

    Thanks Andrew, Yes this can be used but how to bring the x and Y data from the .csv file to the wave in Viva and then concatenate it ?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to RFStuff

    It's a bit of a strange requirement, but you should be able to bring in the data from the CSV using the getAsciiWave function in the calculator, and the original waveform you should be able to use Right Mouse->Send->To Calculator (or something like that) and then use my custom concatenation function, and plot the result.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 5 years ago in reply to Andrew Beckett

    Dear Andrew,

    I tried to use getAsciiWave function for a csv file.

    The data format in the file is as below:- (the 1st column is the timestamp and the 2nd column is the voltage value)

    0.000000000000000e+00 , -1.599895321664491e-04
    1.022413504667159e-13 , -1.925820261625804e-04
    2.044827009334319e-13 , -2.264630041929152e-04
    3.067240514001478e-13 , -2.641736431026884e-04
    4.089654018668637e-13 , -3.011815624487069e-04
    5.112067523335796e-13 , -3.374965222249115e-04

    I then use the command in the calculator as below:-

    getAsciiWave("/user/home/MAT_WORK_CAD/PPV_ISF_OSC/RING_OSC_HB_TD_WAVE.csv" 1 2 ?xskip 0 ?yskip 0 ?formatFloat t ?xName "Time" ?xUnits "s" ?yName "V" ?yUnits "v" ).

    But, it is not plotting in ViVa. The file location is correct.

    The errors I am getting in CIW is as:- 

    expression evaluation failed: val is not legal.
    expression evaluation failed: getAsciiWave("/user/home/MAT_WORK_CAD/PPV_ISF_OSC/RING_OSC_HB_TD_WAVE.vcsv" 1 2 ?xskip 0 ?yskip 0 ?formatFloat t ?xName "Time" ?xUnits "s" ?yName "V" ?yUnits "v" )
    Data directory must point to valid simulation results.

    Could you please tell why this is happening ?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to RFStuff

    There's an issue if you have CSV files when you use ?formatFloat t (so set that to "off" on the form to avoid this). If you have formatFloat set to "on" (or t), then you need to remove the commas in the file. Since all the numbers are floating point anyway, you can leave formatFloat as off and then you don't need to change the file (CCR 1629658 is about this). So this should work:

    getAsciiWave("/user/home/MAT_WORK_CAD/PPV_ISF_OSC/RING_OSC_HB_TD_WAVE.csv" 1 2 ?xskip 0 ?yskip 0 ?formatFloat nil ?xName "Time" ?xUnits "s" ?yName "V" ?yUnits "v" )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 5 years ago in reply to Andrew Beckett

    Thanks a lot.

    When I enter the command in CIW, it is generating a wave and I am able to plot it by plot() command in CIW.

    But, in Calculator, by entering the commmand and then pressing the plot button is NOT plotting the wave.

    It is giving:-

    Data directory must point to valid simulation results.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to RFStuff

    I don't see that. What version are you using?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 5 years ago in reply to Andrew Beckett

    The virtuoso version is sub-version ICADV12.3-64b.500.23

    The spectre version is sub-version 18.1.0.335.isr6

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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