| xPC Target | ![]() |
Using the Method Syntax with Target Objects
Use the method syntax to run a target object method. The syntax method_name(target_object, argument_list) can be replaced with:
Unlike properties, for which partial but unambiguous names are permitted, method names must be entered in full, and in lowercase. For example, to add a scope of type target with a scope index of 1:
tg.addscope('target',1)
addscope(tg, 'target', 1)
| Getting the Value of a Target Object Property | addscope | ![]() |