Difference between revisions of "AnyWave:MATLAB Batch"

From WikiMEG
Jump to: navigation, search
(Make my plugin compatible)
(UI.JSON)
Line 21: Line 21:
 
Use the following file as a skeleton for your needs:<br/>
 
Use the following file as a skeleton for your needs:<br/>
  
<syntaxhighlight lang="json">
+
<syntaxhighlight lang="java">
 
{
 
{
 
"input_keys" : [ "input_file"],
 
"input_keys" : [ "input_file"],

Revision as of 15:38, 30 March 2020

Introduction

One of the features of AnyWave is to run some processes in batch.
This means that you can use a dedicated GUI to program several processing on many files and execute all this processing
This feature is accessible from here:
Process batch processing.png

Make my plugin compatible

This is quite simple. First, you need to edit the desc.txt and add the CanRunFromCommandLine flag:

edit desc.txt

Note: you can also use the NoDataRequired if your plugin does not a file to be open in AnyWave to run.
In this case the flags line will be: flags = CanRunFromCommandLine:NoDataRequired

name = MyPlugin
description = do something in MATLAB
category = Process:Test:MyPlugin
flags = CanRunFromCommandLine

After you've modified the desc.txt you will need to create two json files and place them in your plugin folder.

UI.JSON

This file will describe parameters needed by your plugin in order to run.
Use the following file as a skeleton for your needs:

{
"input_keys" : [ "input_file"],
"input_file" : ["Input Fil", "check"],
"hp" : ["High Pass Filter", "double"],
"lp" : ["Low Pass Filter", "double"],
"fields_ordering" : ["hp", "lp"]
}