User`s guide
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