<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <meta name="generator" content="Adobe RoboHelp 2019" />
<title>CSV File Formation</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.4.0_4";
</script>
 <meta name="brsprev" value="usage/saving_data/load_acquried_data_file.htm">
 <meta name="brsnext" value="usage/saving_data/convert_binary_to_voltage.htm">
 <meta name="topic-breadcrumbs" content="Usage > Saving and Loading Data" />
</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_logger.htm", "breadcrumbs", " &gt; ", "Home", "../../welcome/c_logger.htm");
document.write("<a class=\"breadcrumbs\" href=\"../usage.htm\">Usage<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"../saving_and_loading_data.htm\">Saving and Loading Data<\/a>  &gt;  CSV File Formation<\/p>");
//]]></script>
</div>

<h1>CSV File Formation</h1>
<hr align="left" />
<p class="pf0"><span class="cf0">I</span>n the case of CSV form, the information 
 of settings and conditions (at which the acquisition is performed), is 
 saved to the file before the acquired data is saved.</p>
<p class="pf0">&#160;</p>
<h2>Example of file</h2>
<p class="pf0" style="margin-left: 40px;"><span class="cf0">The following 
 figure shows the image that the file saved as CSV form is opened in Notepad.<br />
</span><img src="csv_file_formation.png" alt="" style=" border:none; width:100%; max-width:624px;" border="0" /></p>
<p class="pf0" style="margin-left: 40px;">&#160;</p>
<p class="pf0" style="margin-left: 40px;">The first line contains the &quot;CONTE 
 DATA LOGGER&quot; character.<br />
The second and subsequent lines consist of three blocks.</p>
<table class="AlternateBlueWithBlankHeader" style="margin-left: 40px; border-collapse: separate; 
		 border-collapse: separate;" cellspacing="0px" width="64%" border="1">
	<col style="width: 37.5%;" />
	<col style="width: 62.5%;" />
	<tr class="t1st">
		<td><p>Blocks in collection data files</p></td>
		<td><p>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.</p>
		<p>Data to be saved are binary values.</p></td>
	</tr>
</table>
<p class="pf0" style="margin-left: 40px;">&#160;</p>
<h2>Details</h2>
<h2>①Acquisition execution information (Detail)</h2>
<p style="margin-left: 40px;">It consists of 2 lines.</p>
<p style="margin-left: 40px;">16 items on 1 line, separated by commas (&quot;,&quot;). 
 (See table below)</p>
<p style="margin-left: 40px;">Line 1 is the &quot;item names,&quot; separated 
 by commas (&quot;,&quot;).<br />
Line 2 is the values, separated by commas (&quot;,&quot;).</p>
<table class="AlternateBlueWithBlankHeader" style="margin-left: 40px; border-collapse: separate; 
		 border-collapse: separate;" cellspacing="0px" width="100%" border="1">
	<col style="width: 5%;" />
	<col style="width: 10%;" />
	<col style="width: 20%;" />
	<col />
	<tr class="t1st">
		<td><p style="text-align: center;">No.</p></td>
		<td><p style="text-align: center;">Item</p></td>
		<td><p style="text-align: center;">Value (Example)</p></td>
		<td><p style="text-align: center;">Description</p></td>
	</tr>
	<tr class="t2Row">
		<td><p style="text-align: center;">1</p></td>
		<td><p>Version</p></td>
		<td><p>5120</p></td>
		<td><p>Version information of C-LOGGER by which the file is created. 
		 (*1)</p></td>
	</tr>
	<tr class="t1Row">
		<td><p style="text-align: center;">2</p></td>
		<td><p>Channels</p></td>
		<td><p>2</p></td>
		<td><p>Total number of channels used in acquisition.</p></td>
	</tr>
	<tr class="t2Row">
		<td><p style="text-align: center;">3</p></td>
		<td><p>DeviceName</p></td>
		<td><p>ADA16-32/2(PCI)F</p></td>
		<td><p>DeviceName used in acquisition.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p style="text-align: center;">4</p></td>
		<td><p>Resolution</p></td>
		<td><p>16</p></td>
		<td><p>Resolution (in number of bits) of device used in acquisition.</p></td>
	</tr>
	<tr class="t2Row">
		<td><p style="text-align: center;">5</p></td>
		<td><p>SerialNo</p></td>
		<td><p>CONTEC0000</p></td>
		<td><p>Serial number used in acquisition. (*1)</p></td>
	</tr>
	<tr class="t1Row">
		<td><p style="text-align: center;">6</p></td>
		<td><p>ClockType</p></td>
		<td><p>0</p></td>
		<td><p>Clock type with the following numbers.</p>
		<p>0: Internal Clock<br />
		1: External Clock</p></td>
	</tr>
	<tr class="t2Row">
		<td><p style="text-align: center;">7</p></td>
		<td><p>Clock</p></td>
		<td><p>10.000000</p></td>
		<td><p>Sampling Clock Period used in acquisition.<br />
		The unit of value is μSec.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p style="text-align: center;">8</p></td>
		<td><p>Time Integer</p></td>
		<td><p>1583394745000000</p></td>
		<td><p>Integer value converted from the time and date at which 
		 acquisition is started. (*1)</p></td>
	</tr>
	<tr class="t2Row">
		<td><p style="text-align: center;">9</p></td>
		<td><p>SamplingStartDate</p></td>
		<td><p>2020/03/05 13:19:05'000&quot;000</p></td>
		<td><p>Time and date at which acquisition is started.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p style="text-align: center;">10</p></td>
		<td><p>Stop Time Integer</p></td>
		<td><p>1583394746000000</p></td>
		<td><p>Integer value converted from the time and date at which 
		 acquisition is stopped. (*1)</p></td>
	</tr>
	<tr class="t2Row">
		<td><p style="text-align: center;">11</p></td>
		<td><p>SamplingStopDate</p></td>
		<td><p>2020/03/05 13:19:06'000&quot;000</p></td>
		<td><p>Time and date at which acquisition is stopped.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p style="text-align: center;">12</p></td>
		<td><p>Number</p></td>
		<td><p>1000</p></td>
		<td><p>Number of acquired data per channel.</p></td>
	</tr>
	<tr class="t2Row">
		<td><p style="text-align: center;">13</p></td>
		<td><p>RepeatNum</p></td>
		<td><p>1</p></td>
		<td><p>Saves the acquired repeat times settings.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p style="text-align: center;">14</p></td>
		<td><p>DelayNum</p></td>
		<td><p>0</p></td>
		<td><p>Saves the acquired conversion stop delay sampling times 
		 settings.</p></td>
	</tr>
	<tr class="t2Row">
		<td><p style="text-align: center;">15</p></td>
		<td><p>StopTriggerPoint</p></td>
		<td><p>1000</p></td>
		<td><p>Saves the number of data when the stop trigger is activated.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p style="text-align: center;">16</p></td>
		<td><p>NumberOffset</p></td>
		<td><p>0</p></td>
		<td><p>For the second and subsequent split saves, saves the number 
		 of samplings saved separately. (*1)</p></td>
	</tr>
</table>
<p style="margin-left: 40px;">*1: Internal information used by C-LOGGER. 
 The value may change depending on the version of C-LOGGER.</p>
<p style="margin-left: 40px;">&#160;</p>
<h2>②Acquisition channel information (Detail)</h2>
<p style="margin-left: 40px;">The number of rows consists of the value 
 of &quot;Channels&quot; +1.<br />
For example, when Channels = 2, there are 3 rows.</p>
<p style="margin-left: 40px;">Up to 15 items are separated by commas (&quot;,&quot;) 
 on 1 row.<br />
The number of items varies depending on the ScalingEnable setting.<br />
ScalingEnable = 0 (no scaling) results in 11 items.<br />
ScalingEnable = 1 (scaling) results in 15 items.</p>
<p style="margin-left: 40px;">Line 1 contains item names separated by commas 
 (&quot;,&quot;).<br />
Lines 2 and beyond contain values separated by commas (&quot;,&quot;).</p>
<table class="AlternateBlueWithBlankHeader" style="margin-left: 40px; border-collapse: separate; 
		 border-collapse: separate;" cellspacing="0px" width="100%" border="1">
	<col style="width: 5%;" />
	<col style="width: 10%;" />
	<col style="width: 20%;" />
	<col />
	<tr class="t1st">
		<td><p style="text-align: center;">No.</p></td>
		<td><p style="text-align: center;">Item</p></td>
		<td><p style="text-align: center;">Value (Example)</p></td>
		<td><p style="text-align: center;">Description</p></td>
	</tr>
	<tr class="t2Row">
		<td><p style="text-align: center;">1</p></td>
		<td><p>ChannelName </p></td>
		<td><p>Channel 0</p></td>
		<td><p>ChannelName of acquired channel.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p style="text-align: center;">2</p></td>
		<td><p>DeviceCh</p></td>
		<td><p>0</p></td>
		<td><p>Channel Number of Device.</p></td>
	</tr>
	<tr class="t2Row">
		<td><p style="text-align: center;">3</p></td>
		<td><p>Sequence</p></td>
		<td><p>0</p></td>
		<td><p>Channel conversion sequence used in acquisition.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p style="text-align: center;">4</p></td>
		<td><p>Range </p></td>
		<td><p>0</p></td>
		<td><p>Input range specified to device used in acquisition is saved 
		 as numerical value.</p>
		<p>Please refer to the following table for the input range to the 
		 numerical value.</p>
		<table class="AlternateBlueWithBlankHeader" style="margin-left: 40px; 
				 border-collapse: separate; border-collapse: separate;" cellspacing="0px" width="64%" border="1">
			<col style="width: 37.5%;" />
			<col style="width: 62.5%;" />
			<tr class="t1st">
				<td><p>Value</p></td>
				<td><p>Input Range</p></td>
			</tr>
			<tr class="t2Row">
				<td><p>0</p></td>
				<td><p>±10V</p></td>
			</tr>
			<tr class="t1Row">
				<td><p>1</p></td>
				<td><p>±5V</p></td>
			</tr>
			<tr class="t2Row">
				<td><p>2</p></td>
				<td><p>±2.5V</p></td>
			</tr>
			<tr class="t1Row">
				<td><p>3</p></td>
				<td><p>±1.25V</p></td>
			</tr>
			<tr class="t2Row">
				<td><p>50</p></td>
				<td><p>0 - 10V</p></td>
			</tr>
			<tr class="t1Row">
				<td><p>51</p></td>
				<td><p>0 - 5V</p></td>
			</tr>
			<tr class="t2Row">
				<td><p>53</p></td>
				<td><p>0 - 2.5V</p></td>
			</tr>
			<tr class="t1Row">
				<td><p>54</p></td>
				<td><p>0 - 1.25V</p></td>
			</tr>
			<tr class="t2Row">
				<td><p>100</p></td>
				<td><p>0 - 20mA</p></td>
			</tr>
			<tr class="t1Row">
				<td><p>101</p></td>
				<td><p>4 - 20mA</p></td>
			</tr>
			<tr class="t2Row">
				<td><p>150</p></td>
				<td><p>1 - 5V</p></td>
			</tr>
		</table></td>
	</tr>
	<tr class="t2Row">
		<td><p>5</p></td>
		<td><p>MaxData</p></td>
		<td><p>4095</p></td>
		<td><p>Maximum value of the acquired data. The data to be saved 
		 is a binary value.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p>6</p></td>
		<td><p>MinData</p></td>
		<td><p>0</p></td>
		<td><p>Minimum value of the acquired data. The data to be saved 
		 is a binary value.</p></td>
	</tr>
	<tr class="t2Row">
		<td><p>7</p></td>
		<td><p>AverageData</p></td>
		<td><p>2047</p></td>
		<td><p>Average value of the acquired data. The data to be saved 
		 is a binary value.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p>8</p></td>
		<td><p>ScalingEnabled</p></td>
		<td><p>0</p></td>
		<td><p>Whether scale conversion is used in acquisition is saved 
		 as numerical value.</p>
		<p>0: Scale conversion is not performed<br />
		1: Scale conversion is performed</p></td>
	</tr>
	<tr class="t2Row">
		<td><p>9</p></td>
		<td><p>RawDataA</p></td>
		<td><p>(Omitted)</p></td>
		<td><p>Voltage value corresponded to ScaleDataA. It may be omitted 
		 when ScalingEnabled = 0.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p>10</p></td>
		<td><p>RawDataB</p></td>
		<td><p>(Omitted)</p></td>
		<td><p>Voltage value corresponded to ScaleDataB. &#160;It may be 
		 omitted when ScalingEnabled = 0.</p></td>
	</tr>
	<tr class="t2Row">
		<td><p>11</p></td>
		<td><p>ScaleDataA</p></td>
		<td><p>(Omitted)</p></td>
		<td><p>Converted voltage value corresponded to RawDataA. It may 
		 be omitted when ScalingEnabled = 0.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p>12</p></td>
		<td><p>ScaleDataB</p></td>
		<td><p>(Omitted)</p></td>
		<td><p>Converted voltage value corresponded to RawDataB. It may 
		 be omitted when ScalingEnabled = 0.</p></td>
	</tr>
	<tr class="t2Row">
		<td><p>13</p></td>
		<td><p>MaxScale</p></td>
		<td><p>10.000000</p></td>
		<td><p>Maximum value of input data. When scale conversion is used, 
		 it is the converted value.</p></td>
	</tr>
	<tr class="t1Row">
		<td><p>14</p></td>
		<td><p>MinScale</p></td>
		<td><p>-10.000000</p></td>
		<td><p>Minimum value of input data. When scale conversion is used, 
		 it is the converted value.</p></td>
	</tr>
	<tr class="t2Row">
		<td><p>15</p></td>
		<td><p>Option</p></td>
		<td><p>0</p></td>
		<td><p>Option information. (*1)</p></td>
	</tr>
</table>
<p style="margin-left: 40px;">*1: Internal information used by C-LOGGER. 
 The value may change depending on the version of C-LOGGER.</p>
<p>&#160;</p>
<h2>③Acquired data (Detail)</h2>
<p style="margin-left: 40px;">The number of rows consists of the value 
 of &quot;Number&quot; +1.<br />
For example, Number = 1000 consists of 1001 rows.</p>
<p style="margin-left: 40px;">Line 1 contains the character &quot;Data&quot;.<br />
Line 2 contains the values of each channel, separated by a comma (&quot;,&quot;).<br />
The following rows contain the values in chronological order.</p>
<p style="margin-left: 40px;">Each channel value is stored as a binary 
 value (10 decimal).<br />
The binary value is the actual data value input from the device, before 
 it is converted to a voltage value.</p>
<p style="margin-left: 40px;">If you want to convert to a voltage value 
 or current value, refer to &quot;<a href="convert_binary_to_voltage.htm">Convert 
 Binary value to Voltage value</a>&quot; topic.</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>
