07-09-2015 08:02 PM
Hello. I am using Labview 2014 and need your help.
Please see the attached image which program is for to "pluck out" the subset of 2D array thereby processing the data.
My purpose is to reduce duplicated unnecessary controllers in the bottom red box without connecting to the controllers in the top red box because it seems like to be messy.
Do you have any solution?
Thanks,
Converser
07-09-2015 08:11 PM
What do you mean by "controllers"? Do you mean the front panel controls?
You can branch the wires from the control terminals at the top to the same locations at the bottom.
If the code is truly identical, you can make them subVI's.
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
07-10-2015 02:52 AM
Converser,
the code might be identical in both loops, but parameters might be different (e.g. Starting Point). If these are identical as well, a parallelized for-loop would be a first step to address code redundancy.
On the other hand, you code in the loop contains quite some Rube-Goldberg. You should redesign the code to be more efficient.
Norbert
07-10-2015 08:00 AM
If the inputs and outputs are the same, use a for loop and run the process twice, or use a subVI that is called twice. But looking at your code I doubt this is what you should actually do. Post your code (as a VI or snippet) describe what it should do, and we can start to optimize it.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord