User Tools

Site Tools


Sidebar

Imprint

code:dqmh:generic-networking:how-to-use

Table of Contents

30 How to use

General

The Generic Networking enabled modules make most sense when you want to use  a module's API in one application and have its code executed in another application. I.e., use the same module (identical source code) in both applications and configure it as client on one side and as server on the other side. See the GenNet-Proxy module of the example project.

If you only want to make use of the generic networking helper modules (GenNet-Server and GenNet-Client), you can also start and use them with an out-of-the-box DQMH module. See the RemoteControl module of the GenNet example project. 

Example

  • Check out repository listed above
  • Open the \Generic Networking Example\Generic Networking Example.lvproj file
  • Start the Test GenNet-Proxy API.vi Tester, start the module and Enable Network Listening
  • Start the Test RemoteControl API.vi Tester, start the module and Open GenNet Connection

Now, you have a network connection between the two modules.

  • If you Send Message via GenNet in the Test RemoteControl API.vi Tester, it will actually call the Do something with answer request of the GenNet-Proxy module.
  • Now, Update Factor in the Test GenNet-Proxy API.vi Tester and see how the result in the Test RemoteControl API.vi Tester changes when you call Send Message via GenNet again.

code/dqmh/generic-networking/how-to-use.txt · Last modified: 2019/11/10 14:35 by joerg.hampel