How can I log data to a CSV file using OPC Toolbox 2.1.4 (R2009b)?
1 次查看(过去 30 天)
显示 更早的评论
I am trying to log data to a CSV file instead of an OLF file. Is there a direct way to do so?
采纳的回答
MathWorks Support Team
2009-12-21
Instead of logging to an OLF file, you could log the data to a CSV file as follows:
da = opcda('host','ServerID');
connect(da);
grp = addgroup(da);
set(grp,'LogFileName', 'LoggingFile.csv');
The CSV file can be opened in Excel directly.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!