11-04-2025 03:23 AM
Sorry if dumb question, but I'm new to learning Labview and struggle to debug sometimes because I feel like I don't have a good grasp about how to see exactly what data is being transmitted through a given wire.
For example, I find that some built-in VIs will output an array when the only input was a double, so it would be extremely beneficial for my learning to understand exactly what is building the array and what is coming out of the VI. I can open up the VI's block diagram and try to make sense of the output array, but I feel like there must be an easier way to just open up the array to see what each element corresponds to.
I have a decent programming background mostly in Matlab, Python, and C++, so finding what indexes and elements build an array in, say, Python would be very straightforward, but I'm struggling replicating that same debugging ability in Labview. Would love to hear some recommendations from people!
11-04-2025 03:26 AM
11-04-2025 03:29 AM
11-04-2025 03:31 AM
11-04-2025 08:13 AM
Look at the wire. It will have a color, possibly a texture, and a thickness. This is not exhaustive, but should get you started --
Color:
Texture:
Thickness:
LabVIEW Code consists of Structures (such as While Loops, Case Statements, etc.), Functions (native to LabVIEW) and sub-VIs (code written by a Developer that "extends" the concept of a Function in that it transforms Inputs into Outputs). A LabVIEW "program" is just the highest-level VI in a LabVIEW Project.
This should help you navigate around well-written LabVIEW code. If it has "wires going everywhere" and looks like a mound of spaghetti, it may work, but it is not well-written LabVIEW code. It it takes many monitors to see the entire VI, it is not well-written LabVIEW code.
Bob Schor
11-04-2025 08:34 AM
@Bob_Schor wrote:
Look at the wire. It will have a color, possibly a texture, and a thickness.
in my old age, I sometimes misread things. Your 2nd sentence made me laugh.
I realize that it means: It will have (a color), (possibly a texture), and (a thickness).
But I initially misread it as if it meant: It will have (a color), possibly (a texture and a thickness).