User`s manual

8 Serial Port I/O
8-66
char(ptop)'
ans =
2.0199999809E0
The recording state is toggled from on to off. Since the RecordMode value is
index, the record filename is automatically updated.
record(s)
s.RecordStatus
ans =
off
s.RecordName
ans =
WaveForm2.txt
5. Disconnect and clean up – When you no longer need s, you should
disconnect it from the instrument, and remove it from memory and from the
MATLAB workspace.
fclose(s)
delete(s)
clear s
The Record File Contents
The contents of the WaveForm1.txt record file are shown below. Since the
RecordDetail property was verbose, the number of values, commands, and
data were recorded. Note that data returned by the
fread function is in hex
format.
type WaveForm1.txt
Legend:
* - An event occurred.
> - A write operation occurred.
< - A read operation occurred.
1 Recording on 22-Jan-2000 at 11:21:21.575. Binary data in...
2 > 6 ascii values.
*IDN?
3 < 56 ascii values.
TEKTRONIX,TDS 210,0,CF:91.1CT FV:v1.16 TDS2CM:CMV:v1.04
4 > 29 ascii values.