Skip to content

Commit cf12fbe

Browse files
committed
Remove casting to single.
1 parent e1ad59e commit cf12fbe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

toolbox/src/bossdevice_oscillation.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
return
6868
end
6969
end
70-
setparam(obj.targetObj, [obj.appName,'/EVD/' obj.name], 'phase_target', single(newValue));
70+
setparam(obj.targetObj, [obj.appName,'/EVD/' obj.name], 'phase_target', newValue);
7171
end
7272

7373

@@ -78,7 +78,7 @@
7878
function obj = set.phase_plusminus(obj, phase_plusminus)
7979
%set.phase_plusminus Set phase tolerance
8080
% A tolerance of pi ignores the phase in generation of events
81-
setparam(obj.targetObj, [obj.appName,'/EVD/' obj.name], 'phase_plusminus', single(phase_plusminus));
81+
setparam(obj.targetObj, [obj.appName,'/EVD/' obj.name], 'phase_plusminus', phase_plusminus);
8282
end
8383

8484

@@ -89,7 +89,7 @@
8989
function obj = set.amplitude_min(obj, amplitude_min)
9090
%METHOD1 Summary of this method goes here
9191
% Detailed explanation goes here
92-
setparam(obj.targetObj, [obj.appName,'/EVD/' obj.name], 'amplitude_min', single(amplitude_min));
92+
setparam(obj.targetObj, [obj.appName,'/EVD/' obj.name], 'amplitude_min', amplitude_min);
9393
end
9494

9595

@@ -98,7 +98,7 @@
9898
end
9999

100100
function obj = set.amplitude_max(obj, amplitude_max)
101-
setparam(obj.targetObj, [obj.appName,'/EVD/' obj.name], 'amplitude_max', single(amplitude_max));
101+
setparam(obj.targetObj, [obj.appName,'/EVD/' obj.name], 'amplitude_max', amplitude_max);
102102
end
103103

104104

@@ -120,7 +120,7 @@
120120
if numel(coeffs) < numel(obj.bpf_fir_coeffs)
121121
coeffs(numel(obj.bpf_fir_coeffs)) = 0; % fill with zeros
122122
end
123-
setparam(obj.targetObj, [obj.appName,'/OSC/' obj.name], 'bpf_fir_coeffs', single(coeffs));
123+
setparam(obj.targetObj, [obj.appName,'/OSC/' obj.name], 'bpf_fir_coeffs', coeffs);
124124
end
125125

126126
function offset_samples = get.offset_samples(obj)

0 commit comments

Comments
 (0)