<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <meta name="generator" content="Adobe RoboHelp 2019" />
<title>GenSetAoSweep</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.2.3.0_7";
</script>
 <meta name="brsprev" value="sdk/windows_api/function_reference/channel_settings/gen_get_arbitrary_data_file.htm">
 <meta name="brsnext" value="sdk/windows_api/function_reference/channel_settings/gen_get_ao_sweep.htm">
 <meta name="topic-breadcrumbs" content="C-WaveformGenerator SDK > Windows API > Function Reference > Channel settings Functions" />
</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=\"../function_list.htm\">Function Reference<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"gen_set_channel_setting.htm\">Channel settings Functions<\/a>  &gt;  GenSetAoSweep<\/p>");
//]]></script>
</div>

<h1>GenSetAoSweep</h1>
<hr align="center" />
<h2>Function</h2>
<p style="margin-left: 24px;">Set the sweep information.</p>
<h2>Format</h2>
<p class="code" style="margin-left: 24px;">Ret = <span style="font-weight: bold;">GenSetAoSweep</span> 
 ( AppId , AoChannel , SweepType , SweepTimes , SweepStart , SweepStop 
 )</p>
<h2>Parameters</h2>
<p style="margin-left: 24px; margin-bottom: 0pt;"><span style="font-weight: bold;">AppId</span> 
 [ VB.NET: Short ] [ C++: short ] [ C#: short ]&#160;[ Python: ctypes.c_short 
 ]</p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">Specify 
 Application ID retrieved by GenOpenApplication.</p>
<p style="margin-left: 24px; margin-bottom: 0pt;"><span style="font-weight: bold;">AoChannel</span> 
 <span style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
		 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
		 text-decoration-thickness: initial; text-decoration-style: initial; 
		 text-decoration-color: initial;">[ VB.NET: Short ]</span>&#160;<span 
	 style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
	 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
	 text-decoration-thickness: initial; text-decoration-style: initial; 
	 text-decoration-color: initial; display: inline	 ! important ; 
	 float: none;">[ C++: short ]</span>&#160;<span style="font-size: 13.3333px; 
													 font-variant-ligatures: normal; 
													 font-variant-caps: normal; 
													 orphans: 2; widows: 2; 
													 -webkit-text-stroke-width: 0px; 
													 background-color: #ffffff; 
													 text-decoration-thickness: initial; 
													 text-decoration-style: initial; 
													 text-decoration-color: initial;">[ 
 C#: short ] </span>[ Python: ctypes.c_ushort ]</p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">Specify 
 the channel number.</p>
<p style="margin-left: 24px; margin-bottom: 0pt;"><span style="font-weight: bold;">SweepType</span> 
 <span style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
		 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
		 text-decoration-thickness: initial; text-decoration-style: initial; 
		 text-decoration-color: initial;">[ VB.NET: Short ]</span>&#160;<span 
	 style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
	 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
	 text-decoration-thickness: initial; text-decoration-style: initial; 
	 text-decoration-color: initial; display: inline	 ! important ; 
	 float: none;">[ C++: short ]</span>&#160;<span style="font-size: 13.3333px; 
													 font-variant-ligatures: normal; 
													 font-variant-caps: normal; 
													 orphans: 2; widows: 2; 
													 -webkit-text-stroke-width: 0px; 
													 background-color: #ffffff; 
													 text-decoration-thickness: initial; 
													 text-decoration-style: initial; 
													 text-decoration-color: initial;">[ 
 C#: short ] </span>[ Python: ctypes.c_ushort ]</p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">Specify 
 the sweep type.</p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">&#160;</p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">- Sinewave</p>
<table style=" margin-top:14px; margin-left:24px; width:100%; max-width:600px;">
	<col style="width: 10%;" />
	<col style="width: 20%;" />
	<col />
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px; color: White;">Value</p>
		<p style="margin-top: 0px; margin-bottom: 0px; color: White;">[Dec]</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px;"><font color="#FFFFFF">Macro</font></p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px;"><font color="#FFFFFF">Description</font></p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">0</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>GEN_PARAM_SWEEP_NONE</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">None</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">1</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>GEN_PARAM_SWEEP_FREQUENCY</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0pt; margin-bottom: 0pt;">Frequency sweep</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">2</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>GEN_PARAM_SWEEP_AMPLITUDE</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0pt; margin-bottom: 0pt;">Amplitude sweep</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">3</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>GEN_PARAM_SWEEP_DC_OFFSET</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">DC offset sweep</p></td>
	</tr>
</table>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">&#160;</p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">- Square</p>
<table style=" margin-top:14px; margin-left:24px; width:100%; max-width:600px;">
	<col style="width: 10%;" />
	<col style="width: 20%;" />
	<col />
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px; color: White;">Value</p>
		<p style="margin-top: 0px; margin-bottom: 0px; color: White;">[Dec]</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px;"><font color="#FFFFFF">Macro</font></p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px;"><font color="#FFFFFF">Description</font></p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">0</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>GEN_PARAM_SWEEP_NONE</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">None</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">1</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>GEN_PARAM_SWEEP_DUTY_RATIO</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0pt; margin-bottom: 0pt;">Duty ratio sweep</p></td>
	</tr>
</table>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">&#160;</p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">- Other 
 waveforms</p>
<table style=" margin-top:14px; margin-left:24px; width:100%; max-width:600px;">
	<col style="width: 10%;" />
	<col style="width: 20%;" />
	<col />
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px; color: White;">Value</p>
		<p style="margin-top: 0px; margin-bottom: 0px; color: White;">[Dec]</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px;"><font color="#FFFFFF">Macro</font></p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#808080"><p 
			 style="margin-top: 0px; margin-bottom: 0px;"><font color="#FFFFFF">Description</font></p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">0</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>GEN_PARAM_SWEEP_NONE</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p 
			 style="margin-top: 0px; margin-bottom: 0px;">None</p></td>
	</tr>
</table>
<p style="margin-left: 24px; margin-bottom: 0pt;"><span style="font-weight: bold;">SweepTimes</span> 
 <span style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
		 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
		 text-decoration-thickness: initial; text-decoration-style: initial; 
		 text-decoration-color: initial;">[ VB.NET: Short ]</span>&#160;<span 
	 style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
	 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
	 text-decoration-thickness: initial; text-decoration-style: initial; 
	 text-decoration-color: initial; display: inline	 ! important ; 
	 float: none;">[ C++: short ]</span>&#160;<span style="font-size: 13.3333px; 
													 font-variant-ligatures: normal; 
													 font-variant-caps: normal; 
													 orphans: 2; widows: 2; 
													 -webkit-text-stroke-width: 0px; 
													 background-color: #ffffff; 
													 text-decoration-thickness: initial; 
													 text-decoration-style: initial; 
													 text-decoration-color: initial;">[ 
 C#: short ] </span>[ Python: ctypes.c_ushort ]</p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">Specify 
 the times of frequency.</p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">Please 
 specify a value between 0 and 10.</p>
<p style="margin-left: 24px; margin-bottom: 0pt;"><span style="font-weight: bold;">SweepStart</span> 
 <span style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
		 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
		 text-decoration-thickness: initial; text-decoration-style: initial; 
		 text-decoration-color: initial;">[ VB.NET: Single ]</span>&#160;<span 
	 style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
	 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
	 text-decoration-thickness: initial; text-decoration-style: initial; 
	 text-decoration-color: initial; display: inline	 ! important ; 
	 float: none;">[ C++: float ]</span>&#160;<span style="font-size: 13.3333px; 
													 font-variant-ligatures: normal; 
													 font-variant-caps: normal; 
													 orphans: 2; widows: 2; 
													 -webkit-text-stroke-width: 0px; 
													 background-color: #ffffff; 
													 text-decoration-thickness: initial; 
													 text-decoration-style: initial; 
													 text-decoration-color: initial;">[ 
 C#: float ] </span>[ Python: ctypes.c_float ]</p>
<p style="margin-left: 24px; margin-top: 0pt;">Specify the initial value 
 of the sweep used for conversion.</p>
<p style="margin-left: 24px; margin-bottom: 0pt;"><span style="font-weight: bold;">SweepStop</span> 
 <span style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
		 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
		 text-decoration-thickness: initial; text-decoration-style: initial; 
		 text-decoration-color: initial;">[ VB.NET: Single ]</span>&#160;<span 
	 style="font-size: 13.3333px; font-variant-ligatures: normal; font-variant-caps: normal; 
	 orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff; 
	 text-decoration-thickness: initial; text-decoration-style: initial; 
	 text-decoration-color: initial; display: inline	 ! important ; 
	 float: none;">[ C++: float ]</span>&#160;<span style="font-size: 13.3333px; 
													 font-variant-ligatures: normal; 
													 font-variant-caps: normal; 
													 orphans: 2; widows: 2; 
													 -webkit-text-stroke-width: 0px; 
													 background-color: #ffffff; 
													 text-decoration-thickness: initial; 
													 text-decoration-style: initial; 
													 text-decoration-color: initial;">[ 
 C#: float ] </span>[ Python: ctypes.c_float ]</p>
<p style="margin-left: 24px; margin-top: 0pt;">Specify the value at the 
 end of the sweep used for conversion.</p>
<h2>Return Value</h2>
<p style="margin-bottom: 0; margin-left: 24px;"><span style="font-weight: bold;">Ret</span>&#160;[ 
 VB.NET: Integer ]&#160;[ C++: long ] [ C#: int ]&#160;<span style="color: 透明;">[ 
 Python: ctypes.c_long ]</span></p>
<table style="margin-top: 14px; margin-left: 24px;" width="95%">
	<col style="width: 30%;" />
	<col style="width: 10%;" />
	<col style="width: 60%;" />
	<tr>
		<td style="text-align: center;" bgcolor="#808080"><p style="color: #ffffff; 
															 font-weight: bold;">Definition</p></td>
		<td bgcolor="#808080"><p style="text-align: center; color: #ffffff; 
								 font-weight: bold;">Return Value</p></td>
		<td bgcolor="#808080"><p style="text-align: center; color: #ffffff; 
								 font-weight: bold;">Description</p></td>
	</tr>
	<tr>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">GEN_ERR_SUCCESS</p></td>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">0</p></td>
		<td bgcolor="#E6E6E6"><p>Normal completed</p></td>
	</tr>
	<tr>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">GEN_ERR_STARTED</p></td>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">10006</p></td>
		<td bgcolor="#E6E6E6"><p style="margin-top: 0pt; margin-bottom: 0pt;">Cannot 
		 execute because the device is in operation.</p></td>
	</tr>
	<tr>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">GEN_ERR_CHANNEL_NO</p></td>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">22000</p></td>
		<td bgcolor="#E6E6E6"><p style="margin-top: 0pt; margin-bottom: 0pt;">Channel 
		 number is outside the settable range.</p></td>
	</tr>
	<tr>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">GEN_ERR_SWEEP_TYPE</p></td>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">22008</p></td>
		<td bgcolor="#E6E6E6"><p style="margin-top: 0pt; margin-bottom: 0pt;">Sweep 
		 type is outside the settable range.</p></td>
	</tr>
	<tr>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">GEN_ERR_SWEEP_RATIO</p></td>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">22009</p></td>
		<td bgcolor="#E6E6E6"><p style="margin-top: 0pt; margin-bottom: 0pt;">Sweep 
		 time is outside the settable range.</p></td>
	</tr>
	<tr>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code" 
															 style="text-align: center; 
															 margin-top: 0pt; 
															 margin-bottom: 0pt;">GEN_ERR_SWEEP1</p></td>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">22010</p></td>
		<td bgcolor="#E6E6E6"><p style="margin-top: 0pt; margin-bottom: 0pt;">The 
		 value before the sweep change is outside the settable range.</p></td>
	</tr>
	<tr>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code" 
															 style="text-align: center; 
															 margin-top: 0pt; 
															 margin-bottom: 0pt;">GEN_ERR_SWEEP2</p></td>
		<td style="text-align: center;" bgcolor="#E6E6E6"><p class="code">22011</p></td>
		<td bgcolor="#E6E6E6"><p style="margin-top: 0pt; margin-bottom: 0pt;">The 
		 value after the sweep change is outside the settable range.</p></td>
	</tr>
</table>
<p style="margin-bottom: 0; margin-left: 24px;">The others (See also: <a 
	 href="../error_code.htm">Error Code List</a>)</p>
<h2>Initial Value</h2>
<p style="margin-left: 40px;">Sweep Type : 0 (None)</p>
<h2>Remarks</h2>
<p style="margin-left: 40px; margin-top: 0pt; margin-bottom: 0pt;">The 
 basic waveform can be swept.</p>
<p style="margin-left: 40px; margin-top: 0pt; margin-bottom: 0pt;">This 
 can be used when the basic waveform is a sine wave or square wave.</p>
<p style="margin-left: 40px; margin-top: 0pt; margin-bottom: 0pt;">For 
 other waveform types, there will be no sweep.</p>
<p style="margin-left: 40px; margin-top: 0pt; margin-bottom: 0pt;">You 
 can select from 4 types for sine wave and 2 types for square wave.</p>
<p style="margin-left: 40px; margin-top: 0pt; margin-bottom: 0pt;">If the 
 device is in operation, this function cannot be performed.</p>
<h2>Example</h2>
<p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 40px;">Condition: 
 Waveform type sine</p>
<p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 40px;">The 
 sweep type of channel 0 is set to frequency sweep, from 5Hz to 0.5Hz in 
 the time of one waveform.</p>
<table style="margin-top: 14pt; margin-left: 24px;" cellspacing="0" width="90%">
	<tr>
		<td style="vertical-align: TOP; width: 10%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code">VB.NET</p></td>
		<td style="vertical-align: TOP; width: 89%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code">Dim Ret As Integer</p>
		<p class="code">Ret = GenSetAoSweep(AppId, 0, 1, 1, 5, 0.5)</p>
		<p class="code">&#160;</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; width: 10%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code">C++</p></td>
		<td style="vertical-align: TOP; width: 89%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code">long Ret;</p>
		<p class="code">Ret = GenSetAoSweep(AppId, 0, 1, 1, 5, 0.5);</p>
		<p class="code">&#160;</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; width: 10%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code">C#</p></td>
		<td style="vertical-align: TOP; width: 89%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code">int Ret;</p>
		<p class="code">Ret = gen.SetAoSweep(AppId, 0, 1, 1, 5, 0.5);</p>
		<p class="code">&#160;</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; width: 10%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code">Python</p></td>
		<td style="vertical-align: TOP; width: 89%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;"><p 
			 class="code" style="color: 透明;">Ret = ctypes.c_long()</p>
		<p class="code" style="color: 透明;">Ret.value = cgen_api.GenSetAoSweep(AppId, 
		 0, 1, 1, 5, 0.5)</p>
		<p class="code" style="color: 透明;">&#160;</p></td>
	</tr>
</table>
<p style="margin-top: 0pt; margin-bottom: 0pt; margin-left: 40px;">&#160;</p>
<h2>See Also</h2>
<p style="margin-left: 40px;"><a href="gen_get_ao_sweep.htm">GenGetAoSweep</a></p>
<p>&#160;</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>
