NAPOPC 伺服器 004

back

            問: NAPOPC DA Server的執行效能如何?

答: 我們使用 NAPOPC DA Server內所附的 VB 範例程式來測試讀取的效能測試結果如下所示:

           

版本 處理使用者介面 由 Cache 讀取 由 Device 讀取 1 版本 處理使用者介面 由 Cache 讀取 由 Device 讀取
1.31 Yes 601 228 1 2.11 Yes 1716

1

1.31 No 1058 263 1        
2.00 Yes 1095 268 1 1 1 1 1
2.00 No 3122 324 1        
2.03 Yes 1141 318 1        
2.03 No 3101 398 1        
        1        
單位 讀取次數/每秒 (每秒讀取的次數) 1 單位 讀取次數/每秒 (每秒讀取的次數)
模組  I-7520, I-7011 1 模組  I-7520, I-7012
通道 0 1 通道 0
數據型態 floating point value (Analog Input) 1 數據型態 floating point value (Analog Input)
Baud Rate 115200 BPS 1 Baud Rate 115200 BPS
Checksum disabled 1 Checksum disabled
Data format N-8-1 1 Data format N-8-1
timeout 200 milliseconds 1 timeout 200 milliseconds
CPU PII 300MHz 1 CPU P4 1.6GHz
RAM 128 MB 1 RAM 512 MB
工作平臺 Windows NT 4.0 (SP3) 1 工作平臺 Windows XP Professional 2002 SP1

此 VB 範例程式使用 Automation Interface 來存取 OPC. 在底層架構��, 此 Automation Interface 會經由 COM interface 去存取
 OPC.因此存取效能會略差一些.

使用者的程式可以直接用 COM interface 來存取 OPC server. 這種方式需要撰寫較覆雜的程式碼, 但是會有較好的存取效能.

 

back

撰寫: Gary 

日期:2004/9/7