MATLAB XPC TARGET RELEASE NOTES Guía de usuario Pagina 44

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 531
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 43
2 Targets and Scopes in the MATLAB
®
Interface
Acquisition of Gap-Free Data
The following procedure describes how you can programmatically acquire
gap-free data with two scopes.
1 Ensure that you have already built and downlo aded the Simulink model
xpcosc.mdl to the target PC.
2 In the MATLAB C ommand Window, assign tg to the target P C and set the
StopTime property to 1. For example,
tg=xpctarget.xpc
tg.StopTime = 1;
3 Add two scopes of type host to the target application. You can assign the
twoscopestoavector,
sc, so that you can work with both scopes with one
command.
sc = tg.addscope('host', [1 2]);
4 Add the signals of interest (0 and 1) to both scopes.
addsignal(sc,[0 1]);
2-20
Vista de pagina 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 530 531

Comentarios a estos manuales

Sin comentarios