10-11-2024 10:44 AM
My knowledge of network communication is limited, and perhaps I've also misunderstood the DQMH generic networking module (GenNet)
My impression based on the comments on this page is that this is for one way communication?
In my application I need communication both ways, as my UI on the host PC will send commands to the RTT program, but also receive data continuously from the RTT program for displaying. I'd prefer for this not to be using reply messages as I feel that would have me permanently querying.
So to have this two way comms do I just need to have two of the GenNet modules per MHL? That is, the Host MHL has a sender module and a receiver module, and the RTT has a sender module and a receiver module?
Something like this? (excuse my poorly adapted diagram)
Perhaps I've misunderstood and two way communication is possible as standard, if so apologies, and also I'm happy.
Solved! Go to Solution.
10-11-2024 05:11 PM - edited 10-11-2024 05:23 PM
It makes me happy to read that you're giving GenNet a try - thanks for your feedback.
There are two ways to have bidirectional communication:
1. Use requests for sending commands from the host to the target, and using broadcasts to continuously send data back from the target to the host
2. Use two separate DQMH modules, where on talks from host to target and the other one talks from target to host
We usually go with the first of the two.
Edit: Here's a little documentation about using broadcasts with GenNet.
DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (Developer Experience that makes you smile )
10-16-2024 04:23 AM
Excellent, thanks so much for the clarification and for the extra link, that's really helped me out! Much appreciated.