


{"id":431292,"date":"2025-05-12T02:03:19","date_gmt":"2025-05-12T02:03:19","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/"},"modified":"2025-05-16T01:52:41","modified_gmt":"2025-05-16T01:52:41","slug":"source-with-amplitude-and-phase-in-interconnect","status":"answered","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/","title":{"rendered":"Source with amplitude and phase in INTERCONNECT"},"content":{"rendered":"<p>&lt;p&gt;Hi,&lt;\/p&gt;&lt;p&gt;I encountered a problem when using INTERCONNECT. I want to verify my simulation results in matlab, so I need to input an optical signal, including amplitude and phase. However, I tried the &#8216;Scripted Optical Source&#8217; module, and used the script as shown below, and the txt file content is also as shown below. The signal obtained does not contain complex numbers, and there is no phase information.&lt;br&gt;How should I solve this problem? Can I use other modules? As long as I can get the optical signal containing amplitude and phase that I need, it will be fine.&lt;\/p&gt;&lt;p&gt;Thank you very much and look forward to your reply!&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/05\/12-05-2025-1747015320-mceclip0.png\" \/>&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2025\/05\/12-05-2025-1747015354-mceclip1.png\" \/>&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-431292","topic","type-topic","status-answered","hentry","topic-tag-interconnect","topic-tag-source-2"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hi,I encountered a problem when using INTERCONNECT. I want to verify my simulation results in matlab, so I need to input an optical signal, including amplitude and phase. However, I tried the &#039;Scripted Optical Source&#039; module, and used the script as shown below, and the txt file content is also as shown below. The signal\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Source with amplitude and phase in INTERCONNECT | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hi,I encountered a problem when using INTERCONNECT. I want to verify my simulation results in matlab, so I need to input an optical signal, including amplitude and phase. However, I tried the &#039;Scripted Optical Source&#039; module, and used the script as shown below, and the txt file content is also as shown below. The signal\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-05-12T02:03:19+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-05-16T01:52:41+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Source with amplitude and phase in INTERCONNECT | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hi,I encountered a problem when using INTERCONNECT. I want to verify my simulation results in matlab, so I need to input an optical signal, including amplitude and phase. However, I tried the &#039;Scripted Optical Source&#039; module, and used the script as shown below, and the txt file content is also as shown below. The signal\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/source-with-amplitude-and-phase-in-interconnect\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/interconnect\\\/#listItem\",\"name\":\"interconnect\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/interconnect\\\/#listItem\",\"position\":3,\"name\":\"interconnect\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/interconnect\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/source-with-amplitude-and-phase-in-interconnect\\\/#listItem\",\"name\":\"Source with amplitude and phase in INTERCONNECT\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/source-with-amplitude-and-phase-in-interconnect\\\/#listItem\",\"position\":4,\"name\":\"Source with amplitude and phase in INTERCONNECT\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/interconnect\\\/#listItem\",\"name\":\"interconnect\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/source-with-amplitude-and-phase-in-interconnect\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/source-with-amplitude-and-phase-in-interconnect\\\/\",\"name\":\"Source with amplitude and phase in INTERCONNECT | Ansys Learning Forum\",\"description\":\"Hi,I encountered a problem when using INTERCONNECT. I want to verify my simulation results in matlab, so I need to input an optical signal, including amplitude and phase. However, I tried the 'Scripted Optical Source' module, and used the script as shown below, and the txt file content is also as shown below. The signal\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/source-with-amplitude-and-phase-in-interconnect\\\/#breadcrumblist\"},\"datePublished\":\"2025-05-12T02:03:19+00:00\",\"dateModified\":\"2025-05-16T01:52:41+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Source with amplitude and phase in INTERCONNECT | Ansys Learning Forum","description":"Hi,I encountered a problem when using INTERCONNECT. I want to verify my simulation results in matlab, so I need to input an optical signal, including amplitude and phase. However, I tried the 'Scripted Optical Source' module, and used the script as shown below, and the txt file content is also as shown below. The signal","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/interconnect\/#listItem","name":"interconnect"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/interconnect\/#listItem","position":3,"name":"interconnect","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/interconnect\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/#listItem","name":"Source with amplitude and phase in INTERCONNECT"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/#listItem","position":4,"name":"Source with amplitude and phase in INTERCONNECT","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/interconnect\/#listItem","name":"interconnect"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/","name":"Source with amplitude and phase in INTERCONNECT | Ansys Learning Forum","description":"Hi,I encountered a problem when using INTERCONNECT. I want to verify my simulation results in matlab, so I need to input an optical signal, including amplitude and phase. However, I tried the 'Scripted Optical Source' module, and used the script as shown below, and the txt file content is also as shown below. The signal","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/#breadcrumblist"},"datePublished":"2025-05-12T02:03:19+00:00","dateModified":"2025-05-16T01:52:41+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Source with amplitude and phase in INTERCONNECT | Ansys Learning Forum","og:description":"Hi,I encountered a problem when using INTERCONNECT. I want to verify my simulation results in matlab, so I need to input an optical signal, including amplitude and phase. However, I tried the 'Scripted Optical Source' module, and used the script as shown below, and the txt file content is also as shown below. The signal","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/","article:published_time":"2025-05-12T02:03:19+00:00","article:modified_time":"2025-05-16T01:52:41+00:00","twitter:card":"summary_large_image","twitter:title":"Source with amplitude and phase in INTERCONNECT | Ansys Learning Forum","twitter:description":"Hi,I encountered a problem when using INTERCONNECT. I want to verify my simulation results in matlab, so I need to input an optical signal, including amplitude and phase. However, I tried the 'Scripted Optical Source' module, and used the script as shown below, and the txt file content is also as shown below. The signal"},"aioseo_meta_data":[],"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/interconnect\/\" title=\"interconnect\">interconnect<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSource with amplitude and phase in INTERCONNECT\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"interconnect","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/interconnect\/"},{"label":"Source with amplitude and phase in INTERCONNECT","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/source-with-amplitude-and-phase-in-interconnect\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27833"],"_bbp_topic_id":["431292"],"_bbp_author_ip":["83.147.13.23"],"_bbp_last_reply_id":["431742"],"_bbp_last_active_id":["431742"],"_bbp_last_active_time":["2025-05-16 01:52:31"],"_bbp_reply_count":["2"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["242276","53746"],"_btv_view_count":["261"],"_bbp_topic_status":["answered"],"_bbp_subscription":["53746","242276"]},"test":"pengzheng97email-swu-edu-cn"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/431292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/431292\/revisions"}],"predecessor-version":[{"id":431743,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/431292\/revisions\/431743"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=431292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}