Fluctuations in the measurement values are significantly suppressed by the Ch1 Moving Aver-
age Filter 1.
9000
8000
7000
6000
5000
4000
3000
2000
1000
0
1
401
801
1201
1601
2001
Analog input value after
moving average filtering
Ch1 Analog Input Value
Number of data items
10000
11000
12000
13000
101
501
901
1301
1701
201
601
1001
1401
1801
301
701
1101
1501
1901
Old New
Data at start
of recording
Additional Information
In this example, fluctuations are significantly suppressed using only the Ch1 Moving Average
Filter 1. If you cannot suppress frequency fluctuations from a noise component only with the
Ch1 Moving Average Filter 1, use the Ch1 Moving Average Filter 2 together to suppress the
fluctuations. At this time, design the Ch1 Moving A
verage Filter 2 with the same design proce-
dure and same requirements as the Ch1 Moving Average Filter 1 after you design the Ch1
Moving Average Filter 1.
A-4-3
Programming Example
This section shows programming examples that use the following libraries in the High-speed Analog
Inspection Library of Sysmac Library.
• DeviceV
ariableToArray_100 (Join Device Output Data)
• DataRecorder (Data Recorder)
• LogDataToCSV (Write Log Data to CSV File)
Refer to the Sysmac Library User’s Manual for High-speed Analog Inspection Library (Cat. No. W607)
for details on the High-speed Analog Inspection Library of Sysmac Library.
In the following programming examples, you collect analog input values of Ch1 and then export the
collected data to a CSV file.
Unit Operation Settings
The following table shows the Unit operation settings for the High-speed Analog Input Unit that you set
in the program. Use the default values for settings that are not given in the table.
Appendices
A - 25
NX-series Analog I/O Units User’s Manual for High-speed Analog Input Units (W592)
A-4 Digital Filter Design with the Library
A
A-4-3 Programming Example