04-21-2014 01:29 PM - edited 04-21-2014 01:31 PM
Hi all,
I need to monitor some variables from a controller using the modbus protocol. First I tried making some little VIs to test reading some variables of the same type (for example just one block to read 4 consecutive input registers), and it worked fine. But now when I want to read more things, I have problems.
I attached an image of the VI I'm using (I'm new to labview, so it probably has some big mistakes). If I run it using the Highlight Execution (the lightbult troubleshooting feature), I see that the blocks are being read one at a time from the upper to the lower, and the results are the ones I'm looking for (good result.png). Unfortunately the speed is too low. And when I run it at normal speed, it goes crazy, I don't see any result at all, in fact some wrong results are written (the indicator led above the "2" in the images turns on at a random time, the OK/NG indicators are blinking, and the "Etapa Actual" [Current Step] stays at 0)
I don't know how to fix that, it probably has to do with adding some time loops or making the reads sequential or something like that, but I'm new to labview so I don't know what's the correct approach to solve the problem.
Thanks in advance,
Stefan.
04-21-2014 01:40 PM
I solved the problem, I just had to wire the blocks in a sequential way (I still don't know why, but it works).
Feel free to delete this topic.
04-21-2014 05:32 PM
@Llisas wrote:
I solved the problem, I just had to wire the blocks in a sequential way (I still don't know why, but it works).
Feel free to delete this topic.