| Virtual Reality Toolbox™ | ![]() |
sync(vrnode_object, 'field_name', 'action')
vrnode_object | Name of a vrnode object representing the node. |
field_name | Name of the VRML field to be synchronized. |
action | The action parameter determines what should be done:
|
The sync method controls whether the value of a VRML field is synchronized.
When the field is marked 'on', the field value is updated every time it is changed on the client computer. If the field is marked 'off', the host computer ignores the changes on the client computer.
Synchronized fields add more traffic to the network line because the value of the field must be resent by the client any time it is changed. Because of this, you should mark for synchronization only the fields you need to scan for changes made on clients (typically sensors). By default, fields are not synchronized and their values reflect only settings from MATLAB or the Simulink software.
Synchronization is meaningful only for readable fields. Readable fields are of VRML data class eventOut and exposedField. You cannot enable synchronization for eventIn or nonexposed fields.
![]() | vrnode/setfield | vrori2dir | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |