<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Adobe RoboHelp 2019" />
<title>GenGetOscillation</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.2.0_4";
</script>
 <meta name="brsprev" value="sdk/windows_api/function_reference/device_settings/gen_set_oscillation.htm">
 <meta name="brsnext" value="sdk/windows_api/function_reference/channel_settings/gen_set_channel_setting.htm">
 <meta name="topic-breadcrumbs" content="C-WaveformGenerator SDKについて > Windows API > 関数リファレンス > デバイス設定" />
</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; ", "ホーム", "../../../../welcome/c_waveformgenerator.htm");
document.write("<a class=\"breadcrumbs\" href=\"../../../welcome/c_waveformgenerator_sdk.htm\">C-WaveformGenerator SDKについて<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"../../windows_api.htm\">Windows API<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"../function_list.htm\">関数リファレンス<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"gen_set_device_setting.htm\">デバイス設定<\/a>  &gt;  GenGetOscillation<\/p>");
//]]></script>
</div>

<h1 style="font-size: 18pt;">GenGetOscillation</h1>
<hr align="center" />
<h2>機能</h2>
<p style="margin-left: 24px;">発振情報を取得します。</p>
<h2>書式</h2>
<p class="code" style="margin-left: 24px;">Ret = <span style="font-weight: bold;">GenGetOscillation</span> 
 ( AppId , OscillationType , OscillationStart , OscillationStop )</p>
<h2>引数</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;">GenOpenApplicationで取得したアプリケーションIDを指定します。</p>
<p style="margin-left: 24px; margin-bottom: 0pt;"><span style="font-weight: bold;">OscillationType</span> 
 [ VB.NET: UShort ]&#160;[ C++: unsigned short &#160;* ]&#160;[ C#: out 
 ushort ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]</p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">発振タイプを返します。</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: #ffffff;">値</p>
		<p style="margin-top: 0px; margin-bottom: 0px; color: #ffffff;">[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">マクロ</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">内容</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_OSCILLATION_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;">発信なし</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_OSCILLATION_AUTO_BURST</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;">オートバースト</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_OSCILLATION_TRIGGER_BURST_RISE</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;">トリガバースト(立ち上がり)</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_OSCILLATION_TRIGGER_BURST_FALL</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;">トリガバースト(立ち下がり)</p></td>
	</tr>
</table>
<p style="margin-left: 24px; margin-bottom: 0pt;"><span style="font-weight: bold;">OscillationStart</span> 
 [ VB.NET: UShort ]&#160;[ C++: unsigned short * ]&#160;[ C#: out ushort 
 ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]</p>
<p style="margin-left: 24px; margin-top: 0pt; margin-bottom: 0pt;">変換に使用する発振回数を返します。</p>
<p style="margin-left: 24px; margin-bottom: 0pt;"><span style="font-weight: bold;">OscillationStop</span>&#160;[ 
 VB.NET: Single ]&#160;[ C++: float * ]&#160;[ C#: out float ] [ Python: 
 ctypes.POINTER(ctypes.c_float) ]</p>
<p style="margin-left: 24px; margin-top: 0pt;">変換に使用する停止波数または停止時間を返します。</p>
<h2>戻り値</h2>
<p style="margin-bottom: 0; margin-left: 24px;"><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; 
														 font-weight: bold;">Ret</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;">[ VB.NET: Integer ]</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++: long ]</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#: int ]</span><span style="color: 透明;">&#160;[ 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="vertical-align: TOP; width: 15%;" bgcolor="#808080"><p 
			 style="font-weight: bold; color: #ffffff; text-align: center; 
			 margin-top: 0pt; margin-bottom: 0pt;">定義</p></td>
		<td style="vertical-align: TOP; width: 15%;" bgcolor="#808080"><p 
			 style="text-align: center; margin-top: 0px; margin-bottom: 0px; 
			 color: #ffffff;">戻り値</p>
		<p style="text-align: center; margin-top: 0px; margin-bottom: 0px; 
			 color: #ffffff;">[Dec]</p></td>
		<td style="vertical-align: TOP; width: 80%;" bgcolor="#808080"><p 
			 style="text-align: center; margin-top: 0px; margin-bottom: 0px; 
			 color: #ffffff;">内容</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; width: 15%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;" 
			 bgcolor="#E6E6E6"><p style="text-align: center;">GEN_ERR_SUCCESS</p></td>
		<td style="vertical-align: TOP; width: 15%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;" 
			 bgcolor="#E6E6E6"><p style="text-align: center;">0</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>正常終了</p></td>
	</tr>
	<tr>
		<td style="vertical-align: TOP; width: 15%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;" 
			 bgcolor="#E6E6E6"><p style="text-align: center;">GEN_ERR_OSCILLATION_TYPE</p></td>
		<td style="vertical-align: TOP; width: 15%; padding-left: 0px; 
			 padding-top: 0px; padding-right: 0px; padding-bottom: 0px;" 
			 bgcolor="#E6E6E6"><p style="text-align: center;">20006</p></td>
		<td style="vertical-align: TOP; padding-left: 0px; padding-top: 0px; 
			 padding-right: 0px; padding-bottom: 0px;" bgcolor="#E6E6E6"><p>発振回数が設定可能範囲外です</p></td>
	</tr>
</table>
<p style="margin-left: 24px;">その他のエラー（参照：<a href="../error_code.htm">エラーコード一覧</a>）</p>
<h2>説明</h2>
<p style="margin-left: 40px; margin-top: 0pt; margin-bottom: 0pt;">発信情報を取得することができます。</p>
<p style="margin-left: 40px; margin-top: 0pt; margin-bottom: 0pt;">デバイス動作中での実行が可能です。</p>
<h2>使用例</h2>
<p style="margin-left: 40px;">変換タイプ、発振回数、停止波数または停止時間を取得します。</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">Dim OscillationType As UShort</p>
		<p class="code">Dim OscillationStart As UShort</p>
		<p class="code">Dim OscillationStop As Short</p>
		<p class="code" style="color: 透明;">Ret = GenGetOscillation(AppId, 
		 OscillationType, OscillationStart, OscillationStop)</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">unsigned short OscillationType;</p>
		<p class="code">unsigned short OscillationStart;</p>
		<p class="code">float OscillationStop;</p>
		<p class="code">Ret = GenGetOscillation(AppId, &amp;OscillationType, 
		 &amp;OscillationStart, &amp;OscillationStop);</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">ushort OscillationType;</p>
		<p class="code">ushort OscillationStart;</p>
		<p class="code">float OscillationStop;</p>
		<p class="code" style="color: 透明;">Ret = gen.GetOscilation(AppId, 
		 out OscillationType, out OscillationStart, out OscillationStop);</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()<br />
		OscillationType = ctypes.c_ushort</p>
		<p class="code">OscillationStart = ctypes.c_ushort</p>
		<p class="code">OscillationStop = ctypes.c_float</p>
		<p class="code" style="color: 透明;">Ret.value = cgen_api.GenGetOscillation(AppId, 
		 ctypes.byref(OscillationType), ctypes.byref(OscillationStart), 
		 ctypes.byref(OscillationStop))</p>
		<p class="code" style="color: 透明;">&#160;</p></td>
	</tr>
</table>
<h2>関連項目</h2>
<p style="margin-left: 40px;"><a href="gen_set_oscillation.htm">GenSetOscillation</a></p>
<p>&#160;</p>
<p>&#160;</p>
<div style="width: 100%; position: relative;" id="footer">
	<hr align="center" />
	<p>当サイトでは、お客様の利便性向上のために、Cookieを使用しています。<a href="https://www.contec.com/jp/privacy#anc-01">詳細はこちら。</a></p>
</div>
</body>
</html>
