User Tools

Site Tools


code:dqmh:generic-networking:protocols

12 Protocols

The whole Generic Networking architecture was built with networked communication in mind. The first releases came with a quite straightforward TCP implementation. For later versions, GenNet offers a “protocol abstraction layer” that allows for both other transport mechanisms and protocol syntax.

Variant (Default)

The original - and default - Variant protocol uses plain TCP primitives in LabVIEW to send and receive the DQMH's variant data, flattened to and unflattened from string.

Writing variant data
Reading variant data

PlainString

The PlainString protocol was added in later versions and allows 3rd party applications to communicate over the same interface by sending simple, human-readable strings. It again uses plain TCP primitives in LabVIEW to send and receive data.

Writing string data
Reading string data

How to

select the protocol

You can provide an object for the protocol abstraction class you'd like to use by wiring the GenNet Protocol input of the Start Module.vi:

implement new protocols

Simply inherit from GenNet Protocol.lvclass. You can find the class in our HSE Libraries which usually lives in a subfolder of the project at

  \Libraries\hse-libraries\Source\hse-gennet\GenNet Protocols
code/dqmh/generic-networking/protocols.txt · Last modified: 2023/11/25 10:10 by joerg.hampel