Hello everybody,
I recently discovered through another post here on the forum the VIVA function (see below) to include bookmarks on the charts. This one below create a red area from 2.11 GHz up to 2.66 GHz. This is a good way to highlight a specific area when plotting data.
awvPlaceBookmark( currentWindow() "xrange" list(2110e6 2200e6) ?waveIndex 1 ?description "B66" ?properties list(list("fillColor" "red") list("defaultLabel" "defaultBookMark")))
Currently I define this function (and others for other freq. ranges) in a text file which then gets uploaded into the expression editor thru the calculator
The function works well as long as I plot data directly from the Maetro--> results (see below)
However, if I copy that trace into a new window and I try to plot the bookmark again, I get the following error message in the CIW:
ERROR (WIA-1005): Waveform with the ID 1 does not exist.
ERROR (WIA-1015): Cannot place bookmark because waveform '1' is not visible.
ERROR (VIVA-3002):expression evaluation failed: Expression evaluates to nil
I tried to replace the function "currentWindow()" with others, but it doesn't help. Is there a way to plot this bookmarks on any desired selected chart ?
Is there also a way to store them in the Output Setup instead of the text file ? (it would be more handy)
Thanks
Tommaso