mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sw-plotting-tool.git
synced 2025-06-11 02:26:00 +00:00
Time range from 0 to 0 now outputs all data on CSV files too
This commit is contained in:
parent
580e873d6f
commit
2c7380d0dc
Binary file not shown.
@ -14,6 +14,11 @@ function fourierPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, chan
|
|||||||
if fileSettings{2}.Value == 0
|
if fileSettings{2}.Value == 0
|
||||||
[timeArray, yData] = timeAxisWithIncrement(data, fileSettings{3}.Value, beginning, ending, channel);
|
[timeArray, yData] = timeAxisWithIncrement(data, fileSettings{3}.Value, beginning, ending, channel);
|
||||||
else
|
else
|
||||||
|
if ending == 0
|
||||||
|
timeArray = data(:,1);
|
||||||
|
yData = data(:, channel);
|
||||||
|
else
|
||||||
|
|
||||||
timeIndex = 1;
|
timeIndex = 1;
|
||||||
while data(timeIndex,1) < str2double(start{channel}.Value)
|
while data(timeIndex,1) < str2double(start{channel}.Value)
|
||||||
timeIndex = timeIndex + 1;
|
timeIndex = timeIndex + 1;
|
||||||
@ -32,6 +37,7 @@ function fourierPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, chan
|
|||||||
yData(timeIndex - startIndex + 1) = data(timeIndex, channel);
|
yData(timeIndex - startIndex + 1) = data(timeIndex, channel);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
fs = 1 / fileSettings{3}.Value;
|
fs = 1 / fileSettings{3}.Value;
|
||||||
|
|
||||||
|
@ -15,6 +15,11 @@ function graphPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, channe
|
|||||||
[timeArray, yData] = timeAxisWithIncrement(data, fileSettings{3}.Value, beginning, ending, channel);
|
[timeArray, yData] = timeAxisWithIncrement(data, fileSettings{3}.Value, beginning, ending, channel);
|
||||||
else
|
else
|
||||||
|
|
||||||
|
if ending == 0
|
||||||
|
timeArray = data(:,1);
|
||||||
|
yData = data(:, channel);
|
||||||
|
else
|
||||||
|
|
||||||
timeIndex = 1;
|
timeIndex = 1;
|
||||||
while data(timeIndex,1) < str2double(start{channel}.Value)
|
while data(timeIndex,1) < str2double(start{channel}.Value)
|
||||||
timeIndex = timeIndex + 1;
|
timeIndex = timeIndex + 1;
|
||||||
@ -33,6 +38,7 @@ function graphPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, channe
|
|||||||
yData(timeIndex - startIndex + 1) = data(timeIndex, channel);
|
yData(timeIndex - startIndex + 1) = data(timeIndex, channel);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
%Plot the channel
|
%Plot the channel
|
||||||
|
@ -14,6 +14,11 @@ function meanPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, channel
|
|||||||
if fileSettings{2}.Value == 0
|
if fileSettings{2}.Value == 0
|
||||||
[timeArray, yData] = timeAxisWithIncrement(data, fileSettings{3}.Value, beginning, ending, channel);
|
[timeArray, yData] = timeAxisWithIncrement(data, fileSettings{3}.Value, beginning, ending, channel);
|
||||||
else
|
else
|
||||||
|
if ending == 0
|
||||||
|
timeArray = data(:,1);
|
||||||
|
yData = data(:, channel);
|
||||||
|
else
|
||||||
|
|
||||||
timeIndex = 1;
|
timeIndex = 1;
|
||||||
while data(timeIndex,1) < str2double(start{channel}.Value)
|
while data(timeIndex,1) < str2double(start{channel}.Value)
|
||||||
timeIndex = timeIndex + 1;
|
timeIndex = timeIndex + 1;
|
||||||
@ -32,6 +37,7 @@ function meanPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, channel
|
|||||||
yData(timeIndex - startIndex + 1) = data(timeIndex, channel);
|
yData(timeIndex - startIndex + 1) = data(timeIndex, channel);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
%Plot the channel
|
%Plot the channel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user