
solution in the form of a small piece of software called
VirtualHub
1
. It can access the modules, and
your application only needs to use a library which offers all necessary functions to control the
modules via this VirtualHub. The end users will have to start the VirtualHub before running the
project control software itself, unless they decide to install the hub as a service/deamon, in which
case the VirtualHub starts automatically when the machine starts up.
The application connects itself to the VirtualHub to gain access to the module
The service control method comes with a non-negligible advantage: the application does not need to
run on the machine on which the modules are connected. The application can very well be located
on another machine which connects itself to the service to drive the modules. Moreover, the native
libraries and DLL mentioned above are also able to connect themselves remotely to one or several
machines running VirtualHub.
When a VirtualHub is used, the control application does not need to reside on the same machine as the module.
Whatever the selected programming language and the control paradigm used, programming itself
stays strictly identical. From one language to another, functions bear exactly the same name, and
have the same parameters. The only differences are linked to the constraints of the languages
themselves.
1
www.yoctopuce.com/EN/virtualhub.php
6. Programming, general concepts
www.yoctopuce.com
31
Summary of Contents for Yocto-RangeFinder
Page 1: ...Yocto RangeFinder User s guide...
Page 2: ......
Page 18: ...12 www yoctopuce com...
Page 26: ...20 www yoctopuce com...
Page 42: ...36 www yoctopuce com...
Page 70: ...gcc lyocto lm lpthread lusb 1 0 lstdc 10 Using Yocto RangeFinder with C 64 www yoctopuce com...
Page 90: ...84 www yoctopuce com...
Page 120: ...114 www yoctopuce com...
Page 130: ...124 www yoctopuce com...
Page 484: ...478 www yoctopuce com...
Page 488: ...482 www yoctopuce com...
Page 490: ...23 Characteristics 484 www yoctopuce com...
Page 491: ......
Page 492: ......