![MMF VM40C Скачать руководство пользователя страница 21](http://html1.mh-extra.com/html/mmf/vm40c/vm40c_instruction-manual_1813945021.webp)
r
eadChannelID =
xxxxxxx
;
fieldID1 = 2;
fieldID2 = 3;
fieldID3 = 4;
fieldID4 = 5;
readAPIKey = '
yyyyyyyyyyyyyyyy
';
[x, time] = thingSpeakRead(readChannelID, 'Field', fieldID1,
'NumPoints', 600, 'ReadKey', readAPIKey);
[y, time] = thingSpeakRead(readChannelID, 'Field', fieldID2,
'NumPoints', 600, 'ReadKey', readAPIKey);
[z, time] = thingSpeakRead(readChannelID, 'Field', fieldID3,
'NumPoints', 600, 'ReadKey', readAPIKey);
[f, time] = thingSpeakRead(readChannelID, 'Field', fieldID4,
'NumPoints', 600, 'ReadKey', readAPIKey);
plot(time, x, 'Color',[0, 1, 0], 'LineWidth', 2);
hold on
plot(time, y, 'Color',[0, 0, 1], 'LineWidth', 2);
hold on
plot(time, z, 'Color',[1, 0.5, 0], 'LineWidth', 2);
hold on
yyaxis right
plot(time, f, 'Color',[1, 0, 0.5]);
yyaxis left
ylim([0 inf])
ylabel('mm/s')
yyaxis right
ylim([0 inf])
ylabel('Hz')
title('Vibration (X/Y/Z); Main Frequency')
Under “Data Import/Export” you can download the measurement data stored in the
channel in a CSV file.
In measurement mode you can check the number of sent messages and possible er-
rors by pressing F2.
For further questions ThingSpeak and MATLAB offer extensive help.
17
Содержание VM40C
Страница 4: ......
Страница 17: ...13 Figure 25 Channel settings ...
Страница 19: ...15 Figure 26 Example of a measuring channel view in ThingSpeak ...