startmacro
  pipe on
    panel/setup/controls=gc
    
    nxm.xbc.host.waveform/id=wave1 _wave1{SIZE=1e9},SF,1e9,SIN,1,.01,0,0,1
    nxm.xbc.host.waveform/id=wave2 _wave2{SIZE=1e9},SF,1e9,SIN,1,.01,0,0,1
    
    nxm.xbc.host.newrate/id=newrt1 _wave1,_resamp1,10,,,
    nxm.xbc.host.newrate/id=newrt2 _wave2,_resamp2,2,,,

    plot/id=plot1 _resamp1{SIZE=1e9}
    plot/id=plot2 _resamp2{SIZE=1e9}
    
  pipe off
endmacro