Skip to content

Commit b7a6c46

Browse files
committed
Fix datatypes.
1 parent cf12fbe commit b7a6c46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

toolbox/src/bossdevice_oscillation.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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', phase_plusminus);
81+
setparam(obj.targetObj, [obj.appName,'/EVD/' obj.name], 'phase_plusminus', single(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', amplitude_min);
92+
setparam(obj.targetObj, [obj.appName,'/EVD/' obj.name], 'amplitude_min', single(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', amplitude_max);
101+
setparam(obj.targetObj, [obj.appName,'/EVD/' obj.name], 'amplitude_max', single(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', coeffs);
123+
setparam(obj.targetObj, [obj.appName,'/OSC/' obj.name], 'bpf_fir_coeffs', single(coeffs));
124124
end
125125

126126
function offset_samples = get.offset_samples(obj)

0 commit comments

Comments
 (0)