Skip to content

Commit 4aac39c

Browse files
author
dadi.zhao
committed
Update pspm_cfg_run_pp_emg_data.m
1 parent 5a6f21a commit 4aac39c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
function out = pspm_cfg_run_pp_emg_data(job)
2-
% Executes pspm_emg_pp
3-
2+
% * Description
3+
% Executes pspm_emg_pp
4+
% * History
5+
% Updated with PsPM 6.1.2 in 2024 by Teddy
46
options = struct();
57
options.mains_freq = job.options(1).mains_freq;
68
options.channel_action = job.options(1).chan_action;
79
if isfield(job.options(1).channel, 'cust_channel')
8-
options.channel = job.options(1).channel(1).cust_channel;
10+
options.channel = job.options(1).channel(1).cust_channel;
911
elseif isfield(job.options(1).channel, 'first_channel')
10-
options.channel = job.options(1).channel(1).first_channel;
11-
end;
12-
12+
options.channel = job.options(1).channel(1).first_channel;
13+
end
1314
[sts, output] = pspm_emg_pp(job.datafile{1}, options);
14-
1515
if sts == 1
16-
out = {output.channel};
16+
out = {output.channel};
1717
else
18-
out = {-1};
19-
end;
18+
out = {-1};
19+
end

0 commit comments

Comments
 (0)