From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-19-2023 08:33 PM
Hello,
I feel that there are repetitive patterns in this vi. that I would like to improve.
Please provide some hints and suggestions to help make this vi less messy.
Any feedback or comments on how to optimize the code would be greatly appreciated.
Thank you in advance for your help.
Best,
Plu
Ps. I am working with LabVIEW 2015 on Windows 11 with MS office 2019.
Solved! Go to Solution.
01-19-2023 10:40 PM - edited 01-19-2023 10:42 PM
Disregard, complained about it not opening but it was just off screen.
01-19-2023 10:48 PM
In short, leave yourself more space for wiring which you can do by leveraging SubVIs more. Get in the habit of using a Project and organizing groups of functionality.
For example, this bit shows two very similar tracks of processing. They could each be replaced with 2 instances of the same SubVI:
Something else you'll want to ramp up on is using clusters to group related bits of data/config. Clusters let you run fewer wires around and pull out or update individual parts of clusters when needed. They become especially helpful when grouping code into SubVIs to pass groups of parameters into the SubVI for processing.
01-20-2023 12:46 AM
01-20-2023 06:28 AM - edited 01-20-2023 06:30 AM
@IlluminatedG wrote:
In short, leave yourself more space for wiring which you can do by leveraging SubVIs more. Get in the habit of using a Project and organizing groups of functionality.
For example, this bit shows two very similar tracks of processing. They could each be replaced with 2 instances of the same SubVI:
Something else you'll want to ramp up on is using clusters to group related bits of data/config. Clusters let you run fewer wires around and pull out or update individual parts of clusters when needed. They become especially helpful when grouping code into SubVIs to pass groups of parameters into the SubVI for processing.
Not only does making subVIs save you space, it follows best programming practices. Eliminating duplicate code makes it easier to maintain because, if you need to make a change to the code, you only change it in one place. You don't risk missing one or more instances and introducing most likely difficult, subtle, and hard to troubleshoot bugs.