Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66712

Problem with running multiple functions

$
0
0

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 secuential 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.

 

 


Viewing all articles
Browse latest Browse all 66712

Trending Articles