No matter if you develop a reader, a recJs script, a search expression or a Signal
Script production, impulse provides you always with the same interfaces to read, compare, analyze
or generate signal data.
If you open the port adapter dialogue of the log input, you will find the synchronization
script field and flag at the bottom of the window. It usually contains this example script:
// base: root cell of type ICell (usually a record cell)
// insertPoint: root cell of this port of type PortScope
// isync: sync interface of type IPortSync
// console: console output of type MessageConsoleStream
var clk /*:ISamplePointer:*/ = isync.getPointer('wavetest\\clk_s');
if (clk != null && clk.getCount() > 10) {
console.println("Signals found!");
clk.goNextEdge(-1);
clk.goNextEdge(-1);
clk.goNextEdge(-1);
clk.goNextEdge(-1);
var pos = clk.getPosition();
console.println("clk pos: " + clk.getPosition());
isync.setSynced(pos);
console.println("Synced: " + pos);
} else
console.println("Signals not found!");