-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #598 from bachlab/596-channel-action-issue-in-the-gui
Fix issue 596
- Loading branch information
Showing
4 changed files
with
16 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
function out = pspm_cfg_run_pp_emg_data(job) | ||
% Executes pspm_emg_pp | ||
|
||
% * Description | ||
% Executes pspm_emg_pp | ||
% * History | ||
% Updated with PsPM 6.1.2 in 2024 by Teddy | ||
options = struct(); | ||
options.mains_freq = job.options(1).mains_freq; | ||
options.channel_action = job.options(1).channel_action; | ||
options.channel_action = job.options(1).chan_action; | ||
if isfield(job.options(1).channel, 'cust_channel') | ||
options.channel = job.options(1).channel(1).cust_channel; | ||
options.channel = job.options(1).channel(1).cust_channel; | ||
elseif isfield(job.options(1).channel, 'first_channel') | ||
options.channel = job.options(1).channel(1).first_channel; | ||
end; | ||
|
||
options.channel = job.options(1).channel(1).first_channel; | ||
end | ||
[sts, output] = pspm_emg_pp(job.datafile{1}, options); | ||
|
||
if sts == 1 | ||
out = {output.channel}; | ||
out = {output.channel}; | ||
else | ||
out = {-1}; | ||
end; | ||
out = {-1}; | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters