{"id":926,"date":"2012-06-15T10:39:22","date_gmt":"2012-06-15T15:39:22","guid":{"rendered":"https:\/\/www.circuitdesign.info\/blog\/?p=926"},"modified":"2025-01-14T18:07:18","modified_gmt":"2025-01-15T00:07:18","slug":"shortcut-to-plot-relative-to-reference-signal","status":"publish","type":"post","link":"https:\/\/www.circuitdesign.info\/blog\/2012\/06\/shortcut-to-plot-relative-to-reference-signal\/","title":{"rendered":"Shortcut to plot relative to reference signal"},"content":{"rendered":"\n<p>Ocean\/skill script follows. Select a net. Press ctrl-g. Now that net is your &#8220;reference&#8221;. Select a different net (or the same net if you are fond of trivial signals). Press ctrl-r that second net is plotted relative to the reference.<\/p>\n\n\n\n<p>This is useful for debugging multiple supply domains, supply\/ground bounce, and differential circuits.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>procedure( relVT(netname)\n  VT(netname) - VTGND\n)\n\nprocedure( selVT()\n  wid=hiGetCurrentWindow()\n  path = geGetAdjustedPath(wid strcat(geGetInstHier(wid) \"\/\" car(geGetSelSet())~&amp;gt;net~&amp;gt;name))\n  relVT(path)\n)\n\nprocedure( setGnd()\n  wid=hiGetCurrentWindow()\n  path = geGetAdjustedPath(wid strcat(geGetInstHier(wid) \"\/\" car(geGetSelSet())~&amp;gt;net~&amp;gt;name))\n  VTGND = VT(path)\n)\n\nprocedure( plotSelVT()\n  let( ((sVT selVT()))\n    plot(sVT)\n  )\n)\n\nhiSetBindKey(\"Schematics\" \"CtrlR\" \"plotSelVT()\")\nhiSetBindKey(\"Schematics\" \"CtrlG\" \"setGnd()\")<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ocean\/skill script follows. Select a net. Press ctrl-g. Now that net is your &#8220;reference&#8221;. Select a different net (or the same net if you are fond of trivial signals). Press ctrl-r that second net is plotted relative to the reference. This is useful for debugging multiple supply domains, supply\/ground bounce, and differential circuits.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[175,174,56,173,172,57],"class_list":["post-926","post","type-post","status-publish","format-standard","hentry","category-analog-pro","tag-bounce","tag-ground","tag-ocean","tag-plot","tag-reference","tag-skill"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/poCEy-eW","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts\/926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/comments?post=926"}],"version-history":[{"count":10,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts\/926\/revisions"}],"predecessor-version":[{"id":1247,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts\/926\/revisions\/1247"}],"wp:attachment":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/media?parent=926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/categories?post=926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/tags?post=926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}