MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual de usuario Pagina 386

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 408
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 385
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.
Vista de pagina 385
1 2 ... 381 382 383 384 385 386 387 388 389 390 391 ... 407 408

Comentarios a estos manuales

Sin comentarios