MATLAB XPC TARGET 4 - API GUIDE Podręcznik Użytkownika Strona 255

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 254
addscope
14-11
sc1 = getscope(tg,1) or sc1 = tg.getscope(1)
Create two scopes using a vector of scope objects scvector. Two target scopes
are created on the target PC with scope indices of 1 and 2, and two scope objects
are created on the host PC that represent the scopes on the target PC. The
target object property
Scopes is changed from No scopes defined to 1,2.
scvector = addscope(tg, 'target', [1, 2])
Create a scope and scope object sc4 of type file using the method addscope.
A file scope is created on the target PC with an index of 4. A scope object is
created on the host PC and is assigned to the variable
sc4. The target object
property
Scopes is changed from No scopes defined to 4.
sc4 = addscope(tg,'file',4) or sc4 = tg.addscope('file',4)
See Also xPC Target target object methods remscope and getscope.
xPC Target M-file demo scripts listed in “xPC Target Demos” on page 5-8.
Przeglądanie stron 254
1 2 ... 250 251 252 253 254 255 256 257 258 259 260 ... 371 372

Komentarze do niniejszej Instrukcji

Brak uwag