<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Adobe RoboHelp 2019" />
<title>GetArbitraryDataFile</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.2.2.0_21";
</script>
 <meta name="brsprev" value="sdk/component_object_model/function_reference/set_arbitrary_data_file.htm">
 <meta name="brsnext" value="sdk/component_object_model/function_reference/set_ao_sweep.htm">
 <meta name="topic-breadcrumbs" content="C-WaveformGenerator SDKについて > Component Object Model > 関数リファレンス" />
</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=\"../component_object_model.htm\">Component Object Model<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"function_list.htm\">関数リファレンス<\/a>  &gt;  GetArbitraryDataFile<\/p>");
//]]></script>
</div>

<h1 style="font-size: 18pt;">GetArbitraryDataFile</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;">GetArbitraryDataFile</span>（AoChannel, 
 FilePath, Arg1）</p>
<h2>引数</h2>
<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></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;">FilePat</span><span 
	 style="font-weight: bold; color: 透明;">h</span><span style="color: 透明;"> 
 </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; 
				 color: 透明;">[ VB.NET: String&#160;] </span><span style="color: 透明;">[ 
 C++: BSTR ] </span><span style="color: 透明; 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;">[</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;"> C#: String]</span></p>
<p style="margin-left: 24px; margin-top: 0pt;">ファイルパスを返します。</p>
<p style="margin-left: 24px; margin-bottom: 0pt;"><span style="font-weight: bold;">Arg1</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#:  ref short ]</span></p>
<p style="margin-left: 24px; margin-bottom: 0pt; margin-top: 0pt;">予約領域のアドレスを指定します。0が固定で戻ります。（予約）</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></p>
<table style="margin-top: 14px; margin-left: 24px;" width="95%">
	<tr>
		<td style="vertical-align: TOP; width: 15%;" bgcolor="#808080"><p 
			 style="text-align: center; margin-top: 0px; margin-bottom: 0px; 
			 color: #ffffff;">戻り値</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="text-align: center;" bgcolor="#E6E6E6"><p>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="text-align: center;" bgcolor="#E6E6E6"><p>10003</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="text-align: center;" bgcolor="#E6E6E6"><p>22000</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="text-align: center;" bgcolor="#E6E6E6"><p>22012</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;">チャネル0に設定されたデータファイルを取得します。</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 Filepath As String = &quot;&quot;</p>
		<p class="code">Dim Arg As Short</p>
		<p class="code">Ret = c_fgen.GetArbitraryDataFile（0, FilePath, 
		 Arg)</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">ICWaveformGeneratorPtr c_fgen;</p>
		<p class="code">BSTR FilePath = NULL;</p>
		<p class="code">short Arg;</p>
		<p class="code">Ret = c_fgen-&gt;GetArbitraryDataFile（0, &amp;FilePath, 
		 &amp;Arg);</p>
		<p class="code">SysFreeString(FilePath);</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">string FilePath = &quot;&quot;;</p>
		<p class="code">short Arg = 0;</p>
		<p class="code">Ret = c_fgen.GetArbitraryDataFile（0, ref FilePath, 
		 ref Arg);</p>
		<p class="code">&#160;</p></td>
	</tr>
</table>
<h2>関連項目</h2>
<p style="margin-left: 40px;"><a href="set_arbitrary_data_file.htm">SetArbitraryDataFile</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>
