數(shù)據(jù)存儲是PLC-Recorder高速采集軟件的三大基本功能之一(另外兩個是“采集”和“使用”),與內(nèi)存訪問相比,磁盤訪問是一個很慢的過程,頻繁的讀寫操作或多或少地會對采集造成影響,因此,也有一些可遵循的規(guī)則。
PLC-Recorder軟件在采集的過程中,會將內(nèi)存緩沖區(qū)的記錄定時保存到磁盤,這樣有兩個好處:
1.可以減少內(nèi)存的占用(對于資源很少的系統(tǒng)來說,這很重要)。
2.可以增加數(shù)據(jù)的安全:保存到磁盤的記錄,在斷電重啟軟件后是可以找回來的,而保存在內(nèi)存里的數(shù)據(jù)是不能的。因此,當采集速度非??臁⑼ǖ篮芏?、文件保存間隔比較長時,臨時文件的存儲會比較頻繁,文件數(shù)量也會很多。

Data storage is one of the three basic functions of PLC Recorder high-speed acquisition software (the other two are "acquisition" and "usage"). Compared to memory access, disk access is a very slow process, and frequent read and write operations can more or less affect acquisition. Therefore, there are also some rules to follow.
1、 Temporary files
During the collection process, the PLC Recorder software will save the records from the memory buffer to the disk at a scheduled time, which has two benefits:
1. It can reduce memory usage (which is important for systems with limited resources).
2. Can increase data security: Records saved to disk can be retrieved after power outage and software restart, while data stored in memory cannot be retrieved. Therefore, when the collection speed is very fast, there are many channels, and the file save interval is relatively long, the storage of temporary files will be more frequent, and the number of files will also be large.
