LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to beautify the code automatically?

Are there any utilities/toolkits or anything else that may automatically beautify the code (remove (or at least lessen the number of bends) bends in wires, increase the visual appeal of the code, space-out the code symmetrically, etc,  you know the cosmetics)?

Thanks for your time!
Have a pleasant summer!
0 Kudos
Message 1 of 37
(4,617 Views)
Hi rashid,

at the moment I don't know any tool for this - just right-click the wire and "Clean-up...".

But I have seen a demonstration by NI (at a LabView day) where they presented a tool just for the purpose of cleaning up vis - it was an early beta version, but seems to work fine. Maybe in one of the next LV versions?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 37
(4,602 Views)
Hai,
 
Actually LabVIEW wiring tool will care of automatic bend of wires.
 
If you want to bend wiring by yourself manually you should press ctrl+A and after your wiring you press ctrl+A again to go back to the default automatic wiring mode.
 
Thanks,
Mathan
0 Kudos
Message 3 of 37
(4,601 Views)
Hi mathan,

in my LV8+ ctrl-A selects everything in the block diagram. How does it help bending wires?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 37
(4,597 Views)

Hai GerdW,

Sorry for not explaining in detail. Actually when wiring mode was in automatic mode and when u point near a control or constant, click to start wiring and then press ctrl+A so that it will remove automatic routing of wires.

Thanks,

Mathan

0 Kudos
Message 5 of 37
(4,592 Views)
NI is working on such a tool. I saw a demo two months ago at the NI-DAYS in Switzerland.

Meanwhile, you might be interested in this tool that will clean up all the wires of a VI. It uses unsupported scripting and may no longer work with LV8.5. I have only tested it once with a previous LabVIEW version and
therefore can't say much about it.
Message 6 of 37
(4,587 Views)
Thanks GerdW for the information. So at present I can find no digital laborer to do the task for me. Looks like I'll have to go through each and every VI and VIT to increase the cosmetic appeal of the code.

Thanks anyway!
0 Kudos
Message 7 of 37
(4,578 Views)


GerdW wrote:
Maybe in one of the next LV versions?

It will most probably come in LV 8.6, thats what one of the NI guys in India told me. Smiley Happy
 
"Auto-cleanup all wires" - the feature is...
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 8 of 37
(4,575 Views)
Thanks for the reply mathan!
0 Kudos
Message 9 of 37
(4,570 Views)
Hi Partha,

the tool I saw is not just "auto-clean all wires", it also moves all other elements to get a nice style-guide compliant block diagram...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 37
(4,570 Views)