I'm wondering how to plot imported ASCII waves (with getAsciiWave function) together with simulated data on the same window (same axis, same range) with a Ocean/Skill script.
Each time I try plot or awvPlotWaveform functions, Viva display the ascii data in a separate window, which is anoying when you try to compare/fit measurement and simulated data for example....
Did anybody already find a "simple" way to do this?
This will be because the units don't match on the axes. By default ViVA assumes that if the units don't match they should be plotted on separate axes (which may mean a separate sub window if it's the x-axis). You can use Right Mouse button menu over the axis to "Allow any units" but I think this can only be done interactively.
You can use the SKILL functions in this post to set the units on the y or x axes of the signals you're trying to plot (particularly the getAsciiWave which will be unitless).
Also, if you can use IC617 ISR7 or later (or ICADV122 ISR7 or later, or any ICADV123 version) then getAsciiWave also allows you to specify the units (and name) of the x and y axis when you create the waveform; this is supported on the calculator form too as well as with optional arguments on the getAsciiWave function. That avoids the need for the abSetUnits/abSetXUnits functions I referred to on the other post.
Thank you! It works perfectly!