<commit_before><?xml version="1.0" encoding="UTF-8"?>
<refentry xmlns="http://docbook.org/ns/docbook" 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xmlns:svg="http://www.w3.org/2000/svg" 
xmlns:ns5="http://www.w3.org/1999/xhtml" 
xmlns:mml="http://www.w3.org/1998/Math/MathML" 
xmlns:db="http://docbook.org/ns/docbook" 
version="5.0-subset Scilab" 
xml:id="mdaq_to_file">
    <refnamediv>
        <refname>mdaq_to_file</refname>
        <refpurpose>
		
		Saves data to file
		
		</refpurpose>
    </refnamediv>
    <refsection>
        <title>Block Screenshot</title>
        <para>
            <inlinemediaobject>
                <imageobject>
                    <imagedata align="center" fileref="../../../images/gif/mdaq_to_file.gif" valign="middle"/>
                </imageobject>
            </inlinemediaobject>
        </para>
    </refsection>
    <refsection id="Description_mdaq_to_file">
        <title>Description</title>
        <para>
		
		This block saves data to file. Resulting file is located on MicroDAQ user disk in the 'dsp/data/' directory. 
		Block supports binary and text mode. In text mode, data is written as CSV format and can be imported from 
		MicroDAQ user disk with mdaq_get_file_data() function. MicroDAQ user disk can be accessed with Xcos tools menu 
		'Tools -> MicroDAQ user disk'. 'File type' block parameter is used to select between text and binary file. 
		Data can be written to file in text of binary format. Depending on selected option data can appended to 
		previous content of the file or data will be written to empty file (Create option). To avoid time time 
		consuming wirte operations during every simulation step block can buffer data.

		Block parameter 'Vector buffer size' indicates how many vectors will be buffered. For example sample rate 
		of block is 0.001sec, when user sets buffer size to 100, effective write to file will be performed
		every 0.1sec
		
		
		</para>
    </refsection>
	
	<refsection id="InputOutput_mdaq_to_file">
        <title>Block Input/Output ports</title>
		<para>
		
		<member><para>input(1) - data to be written to file</para></member>
		
		</para>
    
	</refsection>
</refentry><commit_msg>Refresh ToFile help<commit_after><?xml version="1.0" encoding="UTF-8"?>
<refentry xmlns="http://docbook.org/ns/docbook" 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xmlns:svg="http://www.w3.org/2000/svg" 
xmlns:ns5="http://www.w3.org/1999/xhtml" 
xmlns:mml="http://www.w3.org/1998/Math/MathML" 
xmlns:db="http://docbook.org/ns/docbook" 
version="5.0-subset Scilab" 
xml:id="mdaq_to_file">
    <refnamediv>
        <refname>mdaq_to_file</refname>
        <refpurpose>
		
		Saves data to file
		
		</refpurpose>
    </refnamediv>
    <refsection>
        <title>Block Screenshot</title>
        <para>
            <inlinemediaobject>
                <imageobject>
                    <imagedata align="center" fileref="../../../images/gif/mdaq_to_file.gif" valign="middle"/>
                </imageobject>
            </inlinemediaobject>
        </para>
    </refsection>
    <refsection id="Description_mdaq_to_file">
        <title>Description</title>
        <para>
		
		This block saves data to file. Resulting file is located on MicroDAQ user disk in the 'dsp/data/' directory. 
		Block supports binary and text mode. Data can be imported from 
		MicroDAQ user disk with mdaq_get_file_data() function. MicroDAQ user disk can be accessed with Xcos tools menu 
		'Tools -> MicroDAQ user disk'. 'File type' block parameter is used to select between text and binary file. 
		Data can be written to file in text of binary format. Depending on selected option data can appended to 
		previous content of the file or data will be written to empty file (Create option).
       </para> 
        <para>
        Rising edge on Trigger input(2) will create new file. To define sequential file name use '%d' in block filename paramter e.g 'data_%d.txt'. 
        It will produces files: data_0.txt, data_1.txt, data_2.txt etc. If '%d' isn't included in file name data will be written to one file.
	  </para> 
		
    </refsection>
	
	<refsection id="InputOutput_mdaq_to_file">
        <title>Block Input/Output ports</title>
		<para>
		
		<member><para>input(1) - data to be written to file</para></member>
		
		</para>
    
	</refsection>
</refentry>
{'fraction_non_alphanumeric': 0.11468208092485549, 'fraction_numerical': 0.015491329479768785, 'mean_word_length': 2.9327272727272726, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 2, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 16}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2639822', 'n_tokens_mistral': 1494, 'n_tokens_neox': 1347, 'n_words': 415}