LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LOADING EXCEL CHART

I HAVE A QUESTION,

I WANT TO LOAD A TEXT BINARY FILE INTO A VI. I UNDERSTAND HOW TO DO THIS. BUT, MY QUESTION IS, BY LOOKING AT MY VI, IS THERE AN EASIER WAY TO DO THIS. tHE REASON FOR THIS QUESTION IS THAT THERE ARE MORE COLUMNS THAT WILL BE ADDED TO THE TEXT FILE WITH MORE VARIABLES AND I WANT TO SIMPLIFY THIS VI RATHER THAN HAVING A COMPLICATED VI SIMILAR TO THE PRESENT ATTACHE DONE.

GRACIAS, MUCHAS GRACIAS!
0 Kudos
Message 1 of 2
(2,399 Views)
I'm not sure what your VI is supposed to do (I'm missing the subVIs and it's a bit hard to read), but I think this will help you enough. The way I understand it, you already have part of the answer - you're using a for loop to get 1D arrays out of a 2D array, why not use another one inside it to get each element out of the 1D arrays?
You can use the shift registers on the inner for loop as well to pass your results and I think you will also be able to get rid of the local variables.

In general, wiring like this is very problematic, because it's hard to follow. It is highly recommended to follow the left-to-right design. Also, I suggest commenting your code a lot, describing what each section does - it can be extremely helpful when you come back to read your code after a few months.

To learn more, I suggest you read the LabVIEW user manual. Also, try searching this site and google for LabVIEW tutorials. Here is one you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide.

Also, please turn off Caps Lock, it's a bit distracting.

___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,383 Views)