MDO3000 Programmer Manual.pdf - 第354页

Commands Listed in A lphabetical Order Syntax FILESystem:MO UNT:DRIve <Qstring> Related Commands FILESystem:MOUNT :LIST? , FILESystem:UNMOUNT :DRIve Arguments Qstring is a semicolon separated list of fields desc rib…

100%1 / 1158
Commands Listed in Alphabetical Order
Related Commands
FILESystem:CW
D, FILESystem:DIR?, FILESystem:MOUNT:DRIve
Arguments
<directory path> is a quoted string that specifies the directory to create
Examples
FILESYSTEM:MKDIR "E:/NewDirectory" creates the directory named
NewDirectory at the root of the D drive.
These two commands create the directory MyNewSubDirectory within the
existing directory MyDirectory at the root of the D drive:
FILESYSTEM:CWD "E:/MyDirectory"; F ILESYSTEM:MKDIR
"MyNewSubDirectory"
This, of course, assumes that E:/MyDirectory already existed and was not a
read-only directory.
FILESystem:MOUNT:AVAILable? (Query Only)
This query returns a comma-separated list of available drive letters that can be
used for mounting network drives.
Group
File System
Syntax
FILESystem:MOUNT:AVAILable?
Related Commands
FILESystem:CWD,
FILESystem:MOUNT:DRIve
Examples
FILESystem:MOUNT:AVAILable? might return
I:,J:,K:,L:,M:,N:,O:,P:,Q:,R:,S:,T:,U:,V:,W:,X:,Y:,Z: specifying all available drive
letters that can be used for mounting network drives.
FILESystem:MOUNT:DRIve
This command attempts to mount the network drive specified by the quoted
string argument. The query form takes a quoted string argument specifying the
drive letter, and returns a Boolean to indicate whether the specified drive letter is
mounted. 1 = mounted; 0 = not mounted. You can get the details of the mounted
drives by querying FILESystem:MOUNT:LIST?
Group
File System
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-323
Commands Listed in Alphabetical Order
Syntax
FILESystem:MO
UNT:DRIve <Qstring>
Related Commands
FILESystem:MOUNT:LIST?,
FILESystem:UNMOUNT:DRIve
Arguments
Qstring is a semicolon separated list of fields described as follows:
Drive Name: The drive name to use, which should be a case insensitive single
letter followed by a colon. The drive name must be a letter between 'I' and 'Z',
inclusive. Drives A: through D: are not used and drives E: through H: are reserved
for the USB host ports.
Server Identity: One of:
- DNS name of the server.
- IP address of the server.
Path: The path to be mounted; e.g. /this/that/mydir
User Name: The user name.
User Password: The user password.
NOTE. "User Name" and "User Password" are optional a nd are only used for
mounts on Microsoft Windows networks.
Examples
FILESystem:MOUNT:DRIve
"I:;192.168.1.10;C$;mywindowsusername;mywindowspassword"
would mount the shared C: drive on the Windows server at IP address
192.168.1.10, using the Windows login name mywindowsusername and the
Windows password mywindowspassword.
FILESystem:MOUNT:LIST? (Query Only)
This query returns a comma-separated list of the mounted network drives,
including the drive letter, server identity (DNS name or IP address), mountpath
and type. If no network drives are mounted, an empty string is returned. Mount
types are either NFS or CIFS (for Microsoft Windows networks).
NOTE. There are no new lines or white spaces in the returned string.
Group
File System
2-324 MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual
Commands Listed in Alphabetical Order
Syntax
FILESystem:MO
UNT:LIST?
Related Commands
FILESystem:UNMOUNT:DRIve,
FILESystem:MOUNT:DRIve
Examples
FILESystem:MOUNT:LIST? might return
"X:;network.xyz.com;/net/users/mike/
home;NFS,:;winnet.xyz.com;\net
\users\fred\home;CIFS"
FILESystem:READFile (No Query Form)
Writes the contents of the specified file to the specified interface. If the specified
file does not exist or is not readable, an appropriate error event is posted.
Group
File System
Syntax
FILESystem:READFile <QString>
Related Commands
FILESystem:CWD
Arguments
<QString> is a quoted string that defines the file name and path. If the file path is
within the current working directory, specify only the file name.
Examples
FILESYSTEM:READFILE “E:/test_data/tek00016CH1.csv” reads the
content of the specified file, if the file exists and is readable, and sends the content
of the file to the current interface.
FILESystem:REName (No Query Form)
Assigns a new name to an existing file.
Group
File Sys
tem
Syntax
FILESystem:REName <old file path>,<new file path>
Related Commands
FILESystem:CWD
MDO4000/B/C, MSO/DPO4000B and MDO3000 Series Oscilloscopes Programmer Manual 2-325