Hi everyone,
I’m an engineering student and a beginner with LabVIEW. I’m currently working on a project where we control a test bench for a mobile HVAC system. We are using NI-DAQ modules to acquire data such as temperature and pressure, and we also control various bench parameters.
Currently, we can manually set parameters via the front panel, but we also need to implement remote control using MQTT communication with another machine and also to read the parameters from a CVS file. Those parts of the project haven’t been developed yet.
Eventually, we will generate an executable for a runtime machine to handle both measurement and control of the bench. One requirement is that the runtime user must be able to select the control mode—either local (manual input and file data) or remote (via MQTT).
Since we are relatively new to LabVIEW, we are looking for guidance on how to structure the software. One challenge we are facing is that our thermocouple module is quite slow. Because of this, I am considering using multithreading with parallel while loops, possibly implementing a producer-consumer architecture with channel wires. Additionally, the code handling remote commands may not be exactly the same as the local control logic with MQTT.
Given these requirements, I have a few questions:
1. What is the best approach in LabVIEW to switch between local and remote control modes at the start of the program?
2. How can we efficiently manage the timing issues caused by the slow thermocouple module?
Any advice, suggestions, or relevant resources would be greatly appreciated!
Thanks in advance!