<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <meta name="generator" content="Adobe RoboHelp 2019" />
<title>Basic API data collection sample</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.1.4.1.0_2";
</script>
 <meta name="brsprev" value="sdk/windows_api/sample/basic_logger.htm">
 <meta name="brsnext" value="sdk/windows_api/sample/collection_conditions.htm">
 <meta name="topic-breadcrumbs" content="C-LOGGER SDK > Windows API > Sample Program > List of sample programs" />
</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=\"../../welcome/c_logger_sdk.htm\">C-LOGGER SDK<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"../windows_api.htm\">Windows API<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"sample_programs.htm\">Sample Program<\/a>  &gt;  <a class=\"breadcrumbs\" href=\"sample_programs_list.htm\">List of sample programs<\/a>  &gt;  Basic API Data Collection Sample<\/p>");
//]]></script>
</div>

<h1>Basic API Data Collection Sample [ApiBasicLogger]</h1>
<hr align="center" />
<h2>Appearance</h2>
<p style="font-weight: bold; font-size: 10pt; font-variant-ligatures: normal; 
	 font-variant-caps: normal; margin-left: 40px;"><img src="api_basic_logger.png" alt="" style=" border:none; width:100%; max-width:513px;" border="0" /></p>
<h2>Overview</h2>
<p style="margin-left: 40px;">This is a sample client application that 
 starts C-LOGGER.</p>
<p style="margin-left: 40px;">This sample program starts C-LOGGER and can 
 start and stop single-channel and multi-channel data input.</p>
<p style="margin-left: 40px;">The data collected by C-LOGGER can be saved 
 in a file on either the C-LOGGER or the client application. When collection 
 is stopped, this sample program stores the collected data in a file ApiBasicLogger.csv 
 on the client application.</p>
<p style="margin-left: 40px;">If you want to save the data in a file on 
 the C-LOGGER, refer &quot;<a href="../../../usage/saving_data/autosave_acquired_data.htm">Save 
 Acquired Data Automatically</a>&quot; topic.</p>
<p style="margin-left: 40px;">A <a href="../../../welcome/support_device.htm">support 
 device</a> must be installed in the Windows OS in advance.<br />
If you do not have a <a href="../../../welcome/support_device.htm">support 
 device</a> at hand, you can register the &quot;AIO Demo Device&quot; in 
 Windows OS to check the operation of the C-LOGGER.<br />
For how to install the &quot;AIO Demo Device,&quot; refer to API-TOOL(WDM) 
 Help &quot;Home &gt; Setup Driver Environment &gt; Installing Hardware 
 Device &gt; Install DEMO DEVICE &quot;.</p>
<p style="margin-left: 40px;">In addition, make device settings and channel 
 settings on the C-LOGGER, and confirm that data can be input from the 
 device.<br />
When the device is operating normally, save the collection conditions to 
 a file on a local drive.</p>
<p>&#160;</p>
<h2>Step to Use</h2>
<p style="margin-left: 40px;">1. Initialize</p>
<p style="margin-left: 40px;">&#160;- When you execute the sample program, 
 the main screen appears.<br />
&#160;&#160;Specify the start size of C-LOGGER in screen. (Minimize, Normal, 
 Maximize)</p>
<p style="margin-left: 40px;">&#160;</p>
<p style="margin-left: 40px;">2.&#160;Logging Condition File Setting</p>
<p style="margin-left: 40px;">&#160;- Specify the acquisition conditions 
 file saved on the C-LOGGER.</p>
<p style="margin-left: 40px;">&#160;&#160;&#160;There are two ways to specify 
 the file name of the acquisition conditions.</p>
<p style="margin-left: 40px;">&#160;&#160;&#160;First, enter the file name 
 directly in &quot;Folder Name:&quot; field.</p>
<p style="margin-left: 40px;">&#160;&#160;&#160;Second, there is an open 
 folder icon to the right of &quot;Folder Name:&quot; field.<br />
&#160;&#160;Clicking this open folder icon allows you to browse files in 
 the local drive and select a specific an acquisition conditions file.</p>
<p style="margin-left: 40px;">&#160;- After specifying the acquisition 
 conditions file name, click the [LoggerImportSettingFile] button to load 
 the collection conditions file.<br />
&#160;&#160;And then, the acquisition conditions is applied to the C-LOGGER.</p>
<p style="margin-left: 40px;">&#160;</p>
<p style="margin-left: 40px;">3. Specified Sampling Count Event</p>
<p style="margin-left: 40px;">&#160;- You can set (or get) Sampling count 
 for the specified sampling count stored event.</p>
<p style="margin-left: 40px;">&#160;</p>
<p style="margin-left: 40px;">4. Data Logging</p>
<p style="margin-left: 40px;">&#160;- After Logging Start, the sampling 
 is output to a file at the timing of the specified count stored event.</p>
<p style="margin-left: 40px;">&#160;</p>
<p style="margin-left: 40px;">5. Exit</p>
<p style="margin-left: 40px;">&#160;- Click [LoggerCloseApplication] button 
 on the main screen to terminate C-LOGGER.<br />
&#160;&#160;&#160;You can execute the OpenApplication function from another 
 client application.</p>
<p style="margin-left: 40px;">&#160;- To access the data on C-LOGGER, press 
 the [LoggerOpenApplication] button again.</p>
<p style="margin-left: 40px;"><br />
</p>
<p style="margin-left: 40px;">6. Processing to terminate the program</p>
<p style="margin-left: 40px;">&#160;- Press the [Close] button in the window 
 to terminate your client program.</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>
