<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <meta name="generator" content="Adobe RoboHelp 2019" />
<title>How to set arbitrary waveform</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 = "6.0_3";
</script>
 <meta name="brsprev" value="appendix/type_of_sweep.htm">
 <meta name="brsnext" value="appendix/format_of_saved_data.htm">
 <meta name="topic-breadcrumbs" content="Appendix" />
</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=\"number_of_basic_waveform.htm\">Appendix<\/a>  &gt;  How to set arbitrary waveform<\/p>");
//]]></script>
</div>

<h1>How to set arbitrary waveform</h1>
<hr align="left" />
<p>When specifying an arbitrary waveform with C-WaveformGenerator, it is 
 necessary to separately prepare a comma separated values (CSV) format 
 file.<br />
From the waveform selection panel, you can select a CSV file by pressing 
 the [Arbitrary] button.</p>
<p>The following CSV file formats can be read.</p>
<p>&#160;&#160;- CSV file saved with C-WaveformGenerator<br />
&#160;&#160;- CSV file saved by C-LOGGER&#160;&#160;&#160;&#160;*Binary 
 format cannot be read by C-WaveformGenerator<br />
</p>
<p>When creating a new CSV file, please follow the CSV format below.<br />
We recommend that you customize the CSV file saved with C-WaveformGenerator.<br />
For details, please refer to <a href="format_of_saved_data.htm">Format of saved 
 data</a>.</p>
<p>&#160;</p>
<h2>C-WaveformGenerator</h2>
<p style="margin-left: 40px;">Below is the CSV format of C-WaveformGenerator.</p>
<p style="margin-left: 40px;">[CSV format]</p>
<p style="margin-left: 80px;">The line feed code is CRLF.<br />
Following the 4-line header, the data are arranged chronologically on each 
 line.</p>
<p style="margin-left: 80px;">&#160;</p>
<p style="margin-left: 40px;">[Header section]</p>
<table class="AlternateBlueWithBlankHeader" style="margin-left: 80px; border-collapse: separate; 
		 border-collapse: separate;" cellspacing="0px" width="95%" border="1">
	<col style="width: 10%;" />
	<col style="width: 20%;" />
	<col style="width: 50%;" />
	<col style="width: 20%;" />
	<tr class="t1st">
		<td>Line number</td>
		<td>Meaning</td>
		<td>Supplement</td>
		<td>Input example</td>
	</tr>
	<tr class="t2Row">
		<td><p>Line1</p></td>
		<td><p>Generator Waveform</p></td>
		<td><p>Required</p>
		<p>If there is no this string, the message &quot;Failed to load 
		 file&quot; will be displayed and the CSV file will not be read.</p></td>
		<td><p>Generator Waveform</p></td>
	</tr>
	<tr class="t1Row">
		<td><p>Line2</p></td>
		<td><p>(Optional)</p></td>
		<td><p>It is for explanation of the line3.</p>
		<p>Empty line is no problem.</p>
		<p>&#160;</p></td>
		<td><p>Version,Channels,Number</p></td>
	</tr>
	<tr class="t2Row">
		<td rowspan="3"><p>Line3</p></td>
		<td rowspan="3"><p>Version, Channels, Number</p></td>
		<td><p>Version: Indicates the file version</p>
		<p>Not used currently</p>
		<p>&#160;</p></td>
		<td rowspan="3"><p>144,1,100</p></td>
	</tr>
	<tr class="t1Row">
		<td><p>Channels: Specify the number of columns after the Line5. 
		 The input range is 1-16.</p>
		<p>Read the columns corresponding to the number of analog output 
		 channels of the device used.</p>
		<p>If there is no corresponding column, the data in column 1 is 
		 used.</p>
		<p>&#160;&#160;Example: ch0 = 1st column, ch1 = 2nd column, ch2 
		 = 3rd column, ch3 = 4th column...</p>
		<p>&#160;</p></td>
		
	</tr>
	<tr class="t2Row">
		<td><p>Number: Specify the number of lines (number of data) after 
		 the Line5. The input range is 1 to 16,000.</p>
		<p>Regardless of the number of data, one period = 1000 points internally.</p>
		<p>&#160;&#160;Example: When the number of data is 100 -&gt; Output 
		 the same data 10 times consecutively and move to the next line 
		 of data.<br />
		&#160;&#160;Example: When the number of data is 1000 -&gt; When 
		 1 data is output, it moves to the next line of data.<br />
		&#160;&#160;Example: When the number of data is 10000 -&gt; 9 points 
		 out of 10 are thinned out and the data is output.</p>
		<p>&#160;&#160;Example: Even though the number of data is 1000, 
		 if there are only 100 lines after the Line5 (insufficient)<br />
		&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;-&gt; 
		 Output the same data 10 times continuously and move to the next 
		 line of data.</p>
		<p>&#160;&#160;Example: Even though the number of data is 1000, 
		 if there are 10000 lines after the 5th row (too many)<br />
		&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;-&gt; 
		 Only 1000 lines from the Line5 are valid. Lines 1001 and beyond 
		 are invalid.<br />
		</p></td>
		
	</tr>
	<tr class="t1Row">
		<td><p>Line4</p></td>
		<td><p>(Optional)</p></td>
		<td><p>It is for explaining the data after the Line5.</p>
		<p>Empty line is no problem.</p>
		<p>&#160;</p></td>
		<td><p>Data</p></td>
	</tr>
</table>
<p style="margin-left: 80px;">&#160;</p>
<p style="margin-left: 40px;">[Data section]</p>
<p style="margin-left: 80px;">Data is floating point. It can be voltage 
 or current data.<br />
A &quot;,&quot; is required following the data.</p>
<p style="margin-left: 40px;">&#160;</p>
<p style="margin-left: 40px;">[CSV file example]</p>
<p style="margin-left: 80px;"><img src="csv_waveform_generator.png" alt="" style=" border:none; width:100%; max-width:632px;" border="0" /></p>
<p style="margin-left: 40px;">&#160;</p>
<h2>C-LOGGER&#160;&#160;&#160;&#160;</h2>
<p style="margin-left: 40px;">Below is an outline of the CSV format of 
 C-LOGGER.<br />
For details, please refer to the User's Guide of C-LOGGER.</p>
<p style="margin-left: 40px;">[CSV format]</p>
<p style="margin-left: 80px;">The line feed code is CRLF.<br />
Following the 6-line header, the data are arranged chronologically on each 
 line.</p>
<p style="margin-left: 40px;">[Details]</p>
<table class="AlternateBlueWithBlankHeader" style=" margin-left:80px; border-collapse:separate; width:100%; max-width:800px;" cellspacing="0px" border="1">
	<col style="width: 40%;" />
	<col style="width: 60%;" />
	<tr class="t1st">
		<td><p style="text-align: center;">Information</p></td>
		<td><p style="text-align: center;">Description</p></td>
	</tr>
	<tr class="t2Row">
		<td><p>①Acquisition execution information</p></td>
		<td><p>Saves the conditions and information on the acquisition.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p>②Acquisition channel information</p></td>
		<td><p>Saves channel information when acquisition was performed.</p></td>
	</tr>
	<tr class="t2Row">
		<td><p>③Acquired data</p></td>
		<td><p>Saves acquired data for each channel.Data to be saved are 
		 binary values.</p></td>
	</tr>
</table>
<p style="margin-left: 80px;"><br />
<img src="csv_logger.png" alt="" style=" border:none; width:100%; max-width:590px;" border="0" /></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>
