04-25-2025 06:14 AM
Hi everyone!
I’m currently updating an application I’ve been developing in LabVIEW 2024, and I’ve run into a situation where I need some guidance.
Initially, I built the communication using a VISA-based approach to receive signal data from a transmitter. However, the hardware has recently been replaced with a new transmitter that communicates via Modbus RTU.
Here’s where I need help:
I’ve got two VIs: one that uses the original VISA communication and another that’s working with Modbus RTU.
Is it possible (and practical) to integrate these two VIs, or should I just fully transition the signal reception part from VISA to Modbus?
Ideally, I’d like to reuse some of the processing logic, but I’m unsure if it’s worth keeping anything from the VISA setup, or if that would just create more complexity.
I’ve attached both VIs below so you can take a look.
Would love to hear your thoughts on the best approach — especially from anyone who has gone through a similar protocol migration.
Thanks in advance!
Ps. ( simples - Modbus / IndicadorXY - VISA)
04-28-2025 07:17 AM - edited 04-28-2025 07:51 AM
I attempted to implement the transition, and during my initial tests, it worked.
However, when the result was negative, an error occurred — the operation failed when a negative value was returned.
I'm currently trying to understand why this happens, but so far I haven't been able to solve it.
I attached the modify .vi to better illustrate the current state of the code.