Wave:CLI: Difference between revisions

From BlueM
Jump to navigation Jump to search
(Examples)
Line 13: Line 13:


<div class="info">'''Note:''' Depending on the file format, the file import dialog may be shown when importing files using the CLI. To avoid this, use a [[Wave project file|WVP file]] as input in which the series to import or the import settings are already specified.</div>
<div class="info">'''Note:''' Depending on the file format, the file import dialog may be shown when importing files using the CLI. To avoid this, use a [[Wave project file|WVP file]] as input in which the series to import or the import settings are already specified.</div>
===Examples===
<pre class="dos">
Wave.exe -import path\to\file1.zrx path\to\file2.zrx
</pre>
Will import the time series contained in the two files <code>file1.zrx</code> and <code>file2.zrx</code>.
<pre class="dos">
Wave.exe -import path\to\file1.csv
</pre>
Will open the File Import Dialog for <code>file1.csv</code> and then import series as specified.


==Convert==
==Convert==
Line 24: Line 35:


<div class="info">'''Note:''' To specify which series to import from which files without interaction or to specify more import settings, use a [[Wave project file|WVP file]] as input.</div>
<div class="info">'''Note:''' To specify which series to import from which files without interaction or to specify more import settings, use a [[Wave project file|WVP file]] as input.</div>
===Examples===
<pre class="dos">
Wave.exe -convert path\to\file1.wel path\to\file2.zrx path\to\file_out.csv
</pre>
Will import all the time series contained in the files <code>file1.wel</code> and <code>file2.zrx</code> and export them as CSV to <code>file_out.csv</code>.
<pre class="dos">
Wave.exe -convert -i path\to\file1.wel path\to\file_out.csv
</pre>
Will open the Import File Dialog for selecting the series to import from the file <code>file1.wel</code> and export them as CSV to <code>file_out.csv</code>.


[[Category:BlueM.Wave]]
[[Category:BlueM.Wave]]

Revision as of 12:36, 24 September 2021

Wave.png Wave | Development

Wave has a commandline interface that offers the commands described below.

Type Wave.exe -help to get help in the console.

Import

Wave.exe -import file1[, file2[, ...]]

Import one or multiple files and then show Wave.

Note: Depending on the file format, the file import dialog may be shown when importing files using the CLI. To avoid this, use a WVP file as input in which the series to import or the import settings are already specified.

Examples

Wave.exe -import path\to\file1.zrx path\to\file2.zrx

Will import the time series contained in the two files file1.zrx and file2.zrx.

Wave.exe -import path\to\file1.csv

Will open the File Import Dialog for file1.csv and then import series as specified.

Convert

Wave.exe -convert [-i] file1[, file2[, ...]] file_out

Import one or multiple files and export them as CSV to file_out, without showing Wave.

The option -i (interactive) will show the Import File Dialog for files containing multiple time series. Without the option -i (non-interactive), no dialog will be shown and all series from all files will be imported.

Note: To specify which series to import from which files without interaction or to specify more import settings, use a WVP file as input.

Examples

Wave.exe -convert path\to\file1.wel path\to\file2.zrx path\to\file_out.csv

Will import all the time series contained in the files file1.wel and file2.zrx and export them as CSV to file_out.csv.

Wave.exe -convert -i path\to\file1.wel path\to\file_out.csv

Will open the Import File Dialog for selecting the series to import from the file file1.wel and export them as CSV to file_out.csv.