Data logging can be performed through the use of Logging Control with multiple options to define when and what data is recorded.
Data and other information can be written to a file through the use of the fileWrite instruction. The default directory is the MakerPlot-J home directory. Sub directories may be specified or using the path to the Interface File. Files can only be written to the application directory or the interface directory.
!fileWrite myData.txt, [systemTime], [ain0]
!fileWrite logs\myData.txt, [systemTime], [ain0]
!fileWrite [path]myData.txt, [systemTime], [ain0]
Files may be opened by association using fileOpen:
!fileOpen myData.txt
!fileOpen logs\myData.txt
!fileOpen [path]\myData.txt
Files may be deleted using fileDelete. Files can only be deleted from the application directory or the interface directory.
!fileDelete myData.txt
!fileDelete logs\myData.txt
!fileDelete [path]\myData.txt
|