<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <meta name="generator" content="Adobe RoboHelp 2019" />
<title>Waveform setting sample for Multiple Channels</title>
<link rel="StyleSheet" href="../../../../ms_help.css" type="text/css" />
 <script type="text/javascript" language="JavaScript">
//<![CDATA[
function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight)
     location.reload();
}
if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
	origWidth = innerWidth;
	origHeight = innerHeight;
	onresize = reDo;
}
onerror = null; 
//]]>
</script>
<style type="text/css">
<!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
p.WebHelpNavBar { text-align:right; }
-->
</style>

<script type="text/javascript" src="../../../../template/scripts/rh.min.js"></script>
<script type="text/javascript" src="../../../../template/scripts/common.min.js"></script>
<script type="text/javascript" src="../../../../template/scripts/topic.min.js"></script>
<script type="text/javascript" src="../../../../template/scripts/constants.js"></script>
<script type="text/javascript" src="../../../../template/scripts/utils.js"></script>
<script type="text/javascript" src="../../../../template/scripts/mhutils.js"></script>
<script type="text/javascript" src="../../../../template/scripts/mhlang.js"></script>
<script type="text/javascript" src="../../../../template/scripts/mhver.js"></script>
<script type="text/javascript" src="../../../../template/scripts/settings.js"></script>
<script type="text/javascript" src="../../../../template/scripts/XmlJsReader.js"></script>
<script type="text/javascript" src="../../../../template/scripts/loadparentdata.js"></script>
<script type="text/javascript" src="../../../../template/scripts/loadscreen.js"></script>
<script type="text/javascript" src="../../../../template/scripts/loadprojdata.js"></script>
<script type="text/javascript" src="../../../../template/scripts/mhtopic.js"></script>
 <link rel="stylesheet" type="text/css" href="../../../../template/styles/widgets.min.css">
 <link rel="stylesheet" type="text/css" href="../../../../template/styles/topic.min.css">
<script type="text/javascript" >
gRootRelPath = "../../../..";
gCommonRootRelPath = "../../../..";
gTopicId = "5.1.3.2.0_1";
</script>
 <meta name="brsprev" value="sdk/windows_api/sample/sample_programs_list_cui.htm">
 <meta name="brsnext" value="sdk/windows_api/sample/python/file_operation.htm">
 <meta name="topic-breadcrumbs" content="C-WaveformGenerator SDK > Windows API > Sample > List of CUI sample programs" />
</head>

<body>
<script type="text/javascript" src="../../../../ehlpdhtm.js"></script>

<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P45RPFN" style="width: 0px; 
		 height: 0px; display: none; visibility: hidden;">
 <p>&#160;</p>
</iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->


<div><script type="text/javascript" language="javascript">//<![CDATA[
document.write("<p  style=\"text-align:left;\" class=\"breadcrumbs\">");
AddMasterBreadcrumbs("../../../../c_waveformgenerator.htm", "breadcrumbs", " &gt; ", "Home", "../../../../welcome/c_waveformgenerator.htm");
document.write("<a class=\"breadcrumbs\" href=\"../../../welcome/CWaveformGeneratorSDK.htm\">C-WaveformGenerator SDK<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"../../windows_api.htm\">Windows API<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"../sample_programs.htm\">Sample<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"../sample_programs_list_cui.htm\">List of CUI sample programs<\/a>  &gt;  Waveform setting sample for Multiple Channels<\/p>");
//]]></script>
</div>

<h1>Waveform setting sample for Multiple Channels [MultiChannelWave]</h1>
<hr align="center" />
<h2>Appearance</h2>
<p style="margin-left: 40px;"><img src="multi_channel_wave.png" alt="" style=" border:none; width:100%; max-width:378px;" border="0" /></p>
<h2>Overview</h2>
<p style="margin-left: 40px;">This is the client sample which can launch 
 C-WaveformGenerator.<br />
Contec recommends to refer this sample in the beginning to learn C-WaveformGenerator 
 SDK.</p>
<p style="margin-left: 40px;">This sample program can not only launch C-WaveformGenerator 
 but also it can start/stop to waveform generating.<br />
And also, you can modify the device settings as well as the channel settings 
 while stopping the waveform generating.</p>
<p style="margin-left: 40px;">In advance, you must install your device 
 on your Windows OS.<br />
You can use C-WaveformGenerator even you install &quot;AIO Demo Device&quot; 
 on your Windows OS if you don't have any <a href="../../../../welcome/support_device.htm">supported 
 devices</a>.<br />
Please refer &quot;Home &gt; Construction of Driver Environment &gt; Installing 
 Device Driver &gt; Demo Device&quot; on API-AIO(WDM) Help to know the 
 way to install &quot;AIO Demo Device&quot;.</p>
<p style="margin-left: 40px;">Please refer &quot;<a href="file_operation.htm">File 
 sample</a>&quot; if you already have <a href="../../../../basic_operation/save_configuration.htm">the 
 configuration file (ini)</a> for C-WaveformGenerator.</p>
<table class="AlternateBlueWithBlankHeader" style="margin-left: 40px;" cellspacing="0px" width="95%">
	<tr class="t1st">
		<td><p>Specification of sample program</p></td>
		<td><p>&#160;</p></td>
	</tr>
	<tr class="t2Row">
		<td><p>Name of sample program</p></td>
		<td><p>MultiChannelWave.py</p></td>
	</tr>
	<tr class="t1Row">
		<td><p>Related files</p></td>
		<td><p><span style="font-family: メイリオ; font-size: 13.3333px; font-variant-ligatures: normal; 
					 font-variant-caps: normal; background-color: rgb(229, 229, 229); 
					 text-decoration-thickness: initial; text-decoration-style: initial; 
					 text-decoration-color: initial; display: inline	 ! important ; 
					 float: none;">ChannelSetting.py</span><br style="color: #000000; 
		 font-family: メイリオ; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; 
		 font-variant-caps: normal; font-weight: 400; letter-spacing: normal; 
		 orphans: 2; text-align: start; text-indent: 0px; text-transform: none; 
		 widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; 
		 white-space: normal; background-color: rgb(229, 229, 229); text-decoration-thickness: initial; 
		 text-decoration-style: initial; text-decoration-color: initial;" />
		<span style="font-family: メイリオ; font-size: 13.3333px; font-variant-ligatures: normal; 
				 font-variant-caps: normal; background-color: rgb(229, 229, 229); 
				 text-decoration-thickness: initial; text-decoration-style: initial; 
				 text-decoration-color: initial; display: inline	 ! important ; 
				 float: none;">CommonFunction.py</span><br style="color: #000000; 
															 font-family: メイリオ; 
															 font-size: 13.3333px; 
															 font-style: normal; 
															 font-variant-ligatures: normal; 
															 font-variant-caps: normal; 
															 font-weight: 400; 
															 letter-spacing: normal; 
															 orphans: 2; 
															 text-align: start; 
															 text-indent: 0px; 
															 text-transform: none; 
															 widows: 2; 
															 word-spacing: 0px; 
															 -webkit-text-stroke-width: 0px; 
															 white-space: normal; 
															 background-color: rgb(229, 229, 229); 
															 text-decoration-thickness: initial; 
															 text-decoration-style: initial; 
															 text-decoration-color: initial;" />
		<span style="font-family: メイリオ; font-size: 13.3333px; font-variant-ligatures: normal; 
				 font-variant-caps: normal; background-color: rgb(229, 229, 229); 
				 text-decoration-thickness: initial; text-decoration-style: initial; 
				 text-decoration-color: initial; display: inline	 ! important ; 
				 float: none;">DeviceSetting.py</span><br style="color: #000000; 
															 font-family: メイリオ; 
															 font-size: 13.3333px; 
															 font-style: normal; 
															 font-variant-ligatures: normal; 
															 font-variant-caps: normal; 
															 font-weight: 400; 
															 letter-spacing: normal; 
															 orphans: 2; 
															 text-align: start; 
															 text-indent: 0px; 
															 text-transform: none; 
															 widows: 2; 
															 word-spacing: 0px; 
															 -webkit-text-stroke-width: 0px; 
															 white-space: normal; 
															 background-color: rgb(229, 229, 229); 
															 text-decoration-thickness: initial; 
															 text-decoration-style: initial; 
															 text-decoration-color: initial;" />
		<span style="font-family: メイリオ; font-size: 13.3333px; font-variant-ligatures: normal; 
				 font-variant-caps: normal; background-color: rgb(229, 229, 229); 
				 text-decoration-thickness: initial; text-decoration-style: initial; 
				 text-decoration-color: initial; display: inline	 ! important ; 
				 float: none;">cgen_api.py</span></p></td>
	</tr>
</table>
<p style="margin-left: 40px;">&#160;</p>
<h2>Step to Use</h2>
<p style="margin-left: 40px;">1. When you enter the sample program name 
 and execute the program, the CUI (Character User Interface) menu appears 
 as shown above.<br />
&#160;&#160;The appearance may differ depending on the software version.</p>
<p style="margin-left: 80px;">Example of program execution: py MultiChannelWave.py</p>
<p style="margin-left: 40px;">2. Initialization</p>
<p style="margin-left: 40px;">&#160;- You can specify the device name by 
 selecting the command [1: GenOpenApplication] from the CUI menu.<br />
&#160;&#160;After you specify the device name, the Parameters (Screen Size) 
 CUI menu appears.</p>
<p style="margin-left: 40px;">&#160;&#160;&#160;You can indicate the size 
 of window at launching C-WaveformGenerator. (Minimize, Normal, Maximize)<br />
&#160;&#160;<img src="multi_channel_wave01.png" alt="" style=" border:none; width:100%; max-width:408px;" border="0" /></p>
<p style="margin-left: 40px;">&#160;- C-WaveformGenerator may launch when 
 [GenOpenApplication] command completes successfully.<br />
&#160;&#160;&#160;You may not install C-WaveformGenerator properly if C-WaveformGenerator 
 doesn't launch.<br />
&#160;&#160;&#160;Please <a href="../../../../software_uninstallation/application_uninstall.htm">Un-install</a> 
 C-WaveformGenerator and then <a href="../../../../software_installation/application_install.htm">install</a> 
 it, again.</p>
<p style="margin-left: 40px;">3. Device settings</p>
<p style="margin-left: 40px;">&#160;- You can see &quot;Top &gt; Device 
 Settings&quot; by selecting the [2: Device Settings] command from CUI 
 menu.<br />
&#160;&#160;And you can modify the channel number as well as frequency 
 on it.<br />
&#160;&#160;&#160;Please refer &quot;<a href="../../../../screen_layout/advanced_mode/operation_device_advanced.htm">Device 
 settings</a>&quot; topic in <a href="../../../../screen_layout/advanced_mode/operation_panel_advanced.htm">Operation 
 panel</a> to know more about these settings.<br />
&#160;&#160;<img src="multi_channel_wave02.png" alt="" style=" border:none; width:100%; max-width:382px;" border="0" /></p>
<p style="margin-left: 40px;">&#160;- You don't have to modify the device 
 settings when you only confirm the behavior of sample program.<br />
&#160;&#160;You can be back CUI menu without any reflect the parameter 
 when you select [c: cancel] command on it.</p>
<p style="margin-left: 40px;">4. Channel settings</p>
<p style="margin-left: 40px;">&#160;- You can see &quot;Top &gt; Channel 
 setting&quot; menu by selecting the [3: Channel Settings] command from 
 CUI menu.<br />
&#160;&#160;You can configure &quot;Channel Information Settings&quot; 
 as well as &quot;Sweep Settings&quot; for the target channel number.<br />
&#160;&#160;&#160;Please refer &quot;<a href="../../../../screen_layout/advanced_mode/operation_chanel_advanced.htm">Channel 
 settings</a>&quot; topic in <a href="../../../../screen_layout/advanced_mode/operation_panel_advanced.htm">Operation 
 panel</a> to know more about these settings.<br />
&#160;&#160;<img src="multi_channel_wave03.png" alt="" style=" border:none; width:100%; max-width:384px;" border="0" /></p>
<p style="margin-left: 40px;">&#160;- You don't have to modify them if 
 you just confirm the behavior of the sample program.<br />
&#160;&#160;&#160;Please select [c: Cancel] command to ignore all your 
 modifications on Channel settings.</p>
<p style="margin-left: 40px;">&#160;- You cannot change the output waveforms 
 for all channels at once.<br />
&#160;&#160;If you want to change the output waveforms for multiple channels, 
 set [Channel] for each channel.</p>
<p style="margin-left: 40px;">&#160;- You can see &quot;Wave Type&quot; 
 menu by selecting the [4: GenSetWaveType] command from CUI menu.<br />
&#160;&#160;Please select &quot;Wave type&quot; for the target channel 
 number.<br />
&#160;&#160;The wave type is reflected to C-WaveformGenerator and the CUI 
 menu is displayed again after you select &quot;Wave type&quot;.<br />
&#160;&#160;<img src="multi_channel_wave04.png" alt="" style=" border:none; width:100%; max-width:386px;" border="0" /></p>
<p style="margin-left: 40px;">5. Operation</p>
<p style="margin-left: 40px;">&#160;- You can start to generate when you 
 select [5: GenStartOperation] command from CUI menu.<br />
&#160;&#160;<img src="multi_channel_wave05.png" alt="" style=" border:none; width:100%; max-width:371px;" border="0" /></p>
<p style="margin-left: 40px;">&#160;- You can stop to generate when you 
 select [7: GenStopOperation] command from CUI menu.<br />
&#160;&#160;&#160;You can see the current status of C-WaveformGenerator 
 when you choose Normal size window.<br />
&#160;&#160;&#160;The appearance of C-WaveformGenerator will follow your 
 operation in [GenStartOperation/GenStopOperation] on the sample program.<br />
&#160;&#160;&#160;Please refer &quot;<a href="../../../../screen_layout/advanced_mode/screen_layout_advanced.htm">Screen 
 configuration</a>&quot; to know more detail of C-WaveformGenerator.<br />
&#160;&#160;<img src="multi_channel_wave06.png" alt="" style=" border:none; width:100%; max-width:386px;" border="0" /></p>
<p style="margin-left: 40px;">&#160;- You can see the current status of 
 the target device when you select [6: GenGetApplicationStatus] command 
 from CUI menu.<br />
&#160;&#160;<img src="multi_channel_wave07.png" alt="" style=" border:none; width:100%; max-width:451px;" border="0" /></p>
<p style="margin-left: 40px;">6. Exit</p>
<p style="margin-left: 40px;">&#160;- You can terminate C-WaveformGenerator 
 when you select [8: GenCloseApplication] command from CUI menu.<br />
&#160;&#160;&#160;In this case, you can operate C-WaveformGenerator by 
 the other our client application with GenOpenApplication function.<br />
&#160;&#160;<img src="multi_channel_wave08.png" alt="" style=" border:none; width:100%; max-width:413px;" border="0" /></p>
<p style="margin-left: 40px;">&#160;- Please select [1: GenOpenApplication] 
 command if you want to operate C-WaveformGenerator, again.</p>
<p style="margin-left: 40px;">7. Close</p>
<p style="margin-left: 40px;">&#160;- You can close this sample program 
 when you select [q: Quit] command from CUI menu.<br />
&#160;&#160;&#160;C-WaveformGenerator may be also terminated.</p>
<p>&#160;</p>
<p>&#160;</p>
<div style="width: 100%; position: relative;" id="footer">
	<hr style="float: aligncenter; " />
	<p>This website uses cookies. By continuing to browse our site you 
	 agree to our <a href="https://www.contec.com/privacy#anc-01">use of 
	 cookies</a>.</p>
</div>
</body>
</html>
