<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/oxywitleaf2csv/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/oxywitleaf2csv/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 06 May 2025 17:00:18 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/oxywitleaf2csv/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Home modified by Kirill Raguzin</title><link>https://sourceforge.net/p/oxywitleaf2csv/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -15,7 +15,7 @@
   - If you use Linux or some other UNIX-like OS:

   Open a system shell in the OxyWitleaf2CSV project directory and enter the following command:
-  ``` bash   
+  ``` 
   ./build.sh
   ```
   - If you use Windows:
@@ -35,7 +35,7 @@

   Open a system shell in the OxyWitleaf2CSV project directory and enter the following command, replacing "patient_name" with your BIN-file name:

-  ``` bash
+  ```
   ./oxywitleaf2csv -H -f patient_name.bin &amp;gt; patient_name.csv
   ./csv_graph.R patient.csv
   ```
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kirill Raguzin</dc:creator><pubDate>Tue, 06 May 2025 17:00:18 -0000</pubDate><guid>https://sourceforge.netd1dca783b06bf7097d39fb529107247dcde5e4ea</guid></item><item><title>Home modified by Kirill Raguzin</title><link>https://sourceforge.net/p/oxywitleaf2csv/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -39,16 +39,17 @@
   ./oxywitleaf2csv -H -f patient_name.bin &amp;gt; patient_name.csv
   ./csv_graph.R patient.csv
   ```
-  Enter the following command into the console:
-  ``` R
-  input_file = "patient.csv"
-  ```

    - If you use Windows: 

   Rename the file you just got from the devie to `patient.bin` and execute the `process.bat` file. 

   Then open "R Console" and set the current directory to your OxyWitleaf2CSV project directory using the top menu or "setwd()" function. 
+  
+   Enter the following command into the console:
+  ```
+  input_file = "patient.csv"
+  ```

   Open the `csv_graph.R` file and select "Execute all" from the "Edit" menu.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kirill Raguzin</dc:creator><pubDate>Wed, 29 Jan 2025 13:53:08 -0000</pubDate><guid>https://sourceforge.net618393e757f215f1fe81d350f3bfea55106d27bb</guid></item><item><title>Home modified by Kirill Raguzin</title><link>https://sourceforge.net/p/oxywitleaf2csv/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -39,6 +39,10 @@
   ./oxywitleaf2csv -H -f patient_name.bin &amp;gt; patient_name.csv
   ./csv_graph.R patient.csv
   ```
+  Enter the following command into the console:
+  ``` R
+  input_file = "patient.csv"
+  ```

    - If you use Windows: 

@@ -46,10 +50,6 @@

   Then open "R Console" and set the current directory to your OxyWitleaf2CSV project directory using the top menu or "setwd()" function. 

-  Enter the following command into the console:
-  ``` R
-  input_file = "patient.csv"
-  ```
   Open the `csv_graph.R` file and select "Execute all" from the "Edit" menu.

  5) Enjoy :).
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kirill Raguzin</dc:creator><pubDate>Wed, 29 Jan 2025 13:49:39 -0000</pubDate><guid>https://sourceforge.net9009db06b4bf73647c5b42a0d71a552305a4b576</guid></item><item><title>Home modified by Kirill Raguzin</title><link>https://sourceforge.net/p/oxywitleaf2csv/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,76 @@
-Welcome to your wiki!
+# OxyWitleaf2CSV &lt;img align="right" height="200" src="https://sourceforge.net/p/oxywitleaf2csv/code/ci/main/tree/README_md_pictures/witleaf.png?format=raw"/&gt; 

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
+The simple program is a Witleaf handheld pulse oxymeter BIN file format data decoder. It reads BIN-files produced by popular professional pulse oxymeters manufactured by Shenzhen Witleaf Medical Electronics Co., Ltd. (like the WIT-S300 shown in the photo on the right) and produces a CSV-formatted output with the extracted data to stdout (gets printed to the console if not directed otherwise).

-The wiki uses [Markdown](/p/oxywitleaf2csv/wiki/markdown_syntax/) syntax.
+## Requirements
+ - [Digital Mars D compiler (DMD)](https://dlang.org/download.html) - required to build the BIN-&amp;gt;CSV converter itself.
+ - [R](https://www.r-project.org/) - is used to create the graphical plots.
+
+All the required R dependancies (`plotrix` and `Cairo`) should get downloaded and installed automatically.
+
+## Preparing for use
+1) Install [DMD](https://dlang.org/download.html) according to your OS or system package manager instructions.
+2) Compile OxyWitleaf2CSV from the source file:
+   
+  - If you use Linux or some other UNIX-like OS:
+  
+  Open a system shell in the OxyWitleaf2CSV project directory and enter the following command:
+  ``` bash   
+  ./build.sh
+  ```
+  - If you use Windows:
+
+  Execute the `build_win.bat` file. 
+
+3) If you want to create plots like the one shown on the picture near the bottom of the page then install [R](https://www.r-project.org/) as well.
+ 
+## Usage
+ 1) Set up your pulse oxymeter. Don't forget to set a correct date and time as it will be used as timestamps for the data samples and some patient name as it will name a file you will use later on.
+ 2) Record some data at any sample period you want.
+ 3) Connect the device to your PC using the included MiniUSB &amp;lt;-&amp;gt; USB-A cable (the device will be detected as a general file storage).
+ 4) Copy a BIN-file with the name corresponding to the "patient's name" set up previously to the directory containing OxyWitleaf2CSV project files.
+ 5) Process the file using OxyWitleaf2CSV:
+    
+   - If you use Linux or some other UNIX-like OS:
+
+  Open a system shell in the OxyWitleaf2CSV project directory and enter the following command, replacing "patient_name" with your BIN-file name:
+   
+  ``` bash
+  ./oxywitleaf2csv -H -f patient_name.bin &amp;gt; patient_name.csv
+  ./csv_graph.R patient.csv
+  ```
+    
+   - If you use Windows: 
+  
+  Rename the file you just got from the devie to `patient.bin` and execute the `process.bat` file. 
+  
+  Then open "R Console" and set the current directory to your OxyWitleaf2CSV project directory using the top menu or "setwd()" function. 
+  
+  Enter the following command into the console:
+  ``` R
+  input_file = "patient.csv"
+  ```
+  Open the `csv_graph.R` file and select "Execute all" from the "Edit" menu.
+  
+ 5) Enjoy :).
+
+You will get a CSV file containing 4 columns:
+ - "Section" - recording session number;
+ - "Timestamp" - full date and time when a sample was taken (ISO 8601 "extended" timestamp format is used);
+ - "SpO2" - oxygen saturation value;
+ - "PR" - pulse rate;
+
+The field separator used is ";".
+
+If you have Microsoft Office 2010 or above, then it is recommended to use LibreOffice as it allows you to choose an appropriate field separator and column format.
+
+You will also get a PNG picture for each recording session named "plot1.png" to "plotN.png" where "N" is the number of recordings available in the BIN file. Each picture will look somewhat like this:
+
+&lt;div&gt;&lt;img src="https://sourceforge.net/p/oxywitleaf2csv/code/ci/main/tree/README_md_pictures/example_plot.png?format=raw" width="800em"/&gt;&lt;/div&gt;
+
+If you want smoother graphics with anti-aliasing enabled you can open the "csv_graph.R" file and replace the line ```use_Cairo = FALSE``` with ```use_Cairo = TRUE``` and run the "csv_graph.R" script again to see if the results are more appealing.
+
+The files should be enough to compose your report.

 [[members limit=20]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kirill Raguzin</dc:creator><pubDate>Mon, 16 Sep 2024 17:38:37 -0000</pubDate><guid>https://sourceforge.neted4b9b0f56a28d0bafbab424d07a77f85d318237</guid></item><item><title>Home modified by Kirill Raguzin</title><link>https://sourceforge.net/p/oxywitleaf2csv/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/oxywitleaf2csv/wiki/markdown_syntax/" rel="nofollow"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
    &lt;ul class="md-users-list"&gt;
        &lt;li&gt;&lt;a href="/u/mrkirushko/"&gt;Kirill Raguzin&lt;/a&gt; (admin)&lt;/li&gt;
        
    &lt;/ul&gt;&lt;br/&gt;
&lt;p&gt;&lt;span class="download-button-66e8641e3c3cbc38d61da19a" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kirill Raguzin</dc:creator><pubDate>Mon, 16 Sep 2024 17:32:21 -0000</pubDate><guid>https://sourceforge.net55faa4dc8f255b47b35c97d9672dd779e1c9f22b</guid></item></channel></rss>