GHI Electronics,LLC USBwiz User Manual
USBwiz Command Set
subdirectories.
Format RD<SP>foldername<CR>
!00<CR>
Example RD<SP>MYFOLDER<CR>
!00<CR>
Remove the folder with name
MYFOLDER
OF - Open a file for read, write or append
To open a file for read, write or append in the current Folder, use OF command. The
command require a file handle and the access mode.
Open Modes are:
● ‘R’ Open for read, requires the file to already exist in the current media and the
current accessed folder.
● ‘W’ Open for write, will create a new file and give write privilege to it. If the file
already exists, it will be erased first then will open a new one for write.
● ‘A’ Open for append, will create a new file and give write privilege to it. If the file
already exists, it will append data to the end.
Note: USBwiz has 4 available file handles. This is the number of files that can be open
at any time and is not related to the number files USBwiz can access. USBwiz is able
access unlimited number of files.
Format OF<SP>nM>filename<CR>
!00<CR>
Open file foldername with file
handle n and access mode M
M can be R,W or A
n can be 0, 1, 2 or 3
Example OF<SP>1R>VOLTAGE.LOG<CR>
!00<CR>
Open file VOLTAGE.LOG with file
handle 1 with read access mode.
OF<SP>0W>CURRENT.LOG<CR>
!00<CR>
Open file CURRENT.LOG with file
handle 0 with write access mode.
FF - Flush File Data
Flushes the opened file. All buffered data will be written to the storage media. The file
will still be opened and associated with a handle, after performing this operation. This
command is useful to make sure all data are written to the media when needed.
If any data is written to a file, the file must be flushed (or closed – CF command) when
done. Otherwise, the file and/or the file system might get corrupted.
Format FF<SP>n<CR>
!00<CR>
Flush File handle n
Rev.2.27 Page 42 of 64 www.ghielectronics.com
Komentáře k této Příručce