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

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.
