08-02-2008 12:53 PM
08-02-2008 12:55 PM
08-02-2008 02:06 PM
I'm not a huge fan of the way NI's Modbus library is built, but I have used it a couple of times. If memory serves, it uses a single VI to read data. There should even be a couple of examples in the LLB (called something like "TCP master example") which show how to use it.
Essentially, the VI outputs a cluster which has a 1D U16 array as one of its elements. When you ask for the holding registers, that array should have the values. You can get them by wiring the cluster to an unbundle by name primitive.
To learn more about LabVIEW, I suggest you try looking at some of these tutorials.
08-02-2008 03:15 PM
08-02-2008 03:20 PM
The values don't have fractional data because they're integers. As for the rest, you should really look at those tutorials, or you'll just have more questions. Learning to work with LabVIEW is considerably easier than learning to work with other languages, but you still need to do it.
To help you, you can also look at some of the example found in the example finder (Help>>Find Examples).
The concepts you want to be looking at in your case would be arrays, files, and loops. Just as a pointer, leave the TCP Open primitive outside the loop, or you'll have a memory leak.
08-02-2008 04:07 PM