Sure, let me try.
First, i'm assuming that you may be using community edition. If that is true, i'd recommend the use of control toolkit, since it is available in community edition and have useful PID functions for your block diagram, and the connection with linx device can be used only for reading and writing analog values.
However you may be somewhat like me, who likes to try different things.
two different paths to follow: (i dont know which is better, you might need to test)
1) put your logic in main loop and transfer data via custom command function
2) put your logic inside custom command function.
Since official website is deprecated, i'll post a link for internet archive:
https://web.archive.org/web/20200806103634/https://www.labviewmakerhub.com/doku.php?id=learn:tutoria...
and
https://blog.digilentinc.com/how-to-use-linx-custom-commands/
Hope it helps.
Jorge Augusto Pessatto Mondadori, PhD
Sistema Fiep
CLAD, CLD