08-18-2016 06:40 AM
Hello,
I have 28 waveform windows which are programmatically scaled according to my sample rate and voltage scaling. They display differential signals from 8 sources, which are also displayed in another tab.
All of this creates a lot of chaos in the diagram because every single waveform has its own set of property nodes (max, min, multiplier etc). This creates 36 such nodes and A LOT of wires.
I am using subVI's but they are limited to the number of outputs. I still get lots of wires.
How can I make my diagram more, much more, compact? (see image and VI attached)
In OrCAD I'm used to label wires and place off-page connectors. Can I do this in LabVIEW ?
Thanks
08-18-2016 07:16 AM
SSTBRG wrote: I am using subVI's but they are limited to the number of outputs. I still get lots of wires.
Where are the subVIs you tried to make? I see A LOT of duplicate code. That is what you need to make into subVIs and then reuse the subVI. For instance, make a subVI that does the indexing and subtracting for you and reuse it. Another subVI would be where you figure out your max and min scales. You could even pass in a reference to the control to set the max and min scales, further cleaning up your diagram.
08-18-2016 08:20 AM
Along with generally utilizing sub-VI's, If you are finding yourself making several tabs that each have somewhat independent controls, display types and functionality, and you are having trouble with how large your main VI is becoming because of all the functionality you must support on the UI, you could make use of sub-panels to modularize it a bit.
08-22-2016 02:09 AM
Hi all, thanks for the replies.
I looked into it a little and I'll be glad to have your help:
My 'holy grail' would be to place the charts in a subpanel so that they won't be cluttered in my main VI,
and also place all the 42 or so property nodes in subVI's and connec these subVI's to the subpanels.
That will reduce my main VI clutter a lot. How can I do that?
Thanks
08-22-2016 03:30 AM
-In your main VI you can get Reference for all the Controls/Indicators and bundle with name(it'll be easy when unbundling) as cluster: https://zone.ni.com/reference/en-XX/help/371361J-01/glang/bundle_by_name/
-Passing reference to subvi: http://digital.ni.com/public.nsf/allkb/0F4EA104660C0AF38625726F0069B27E
08-22-2016 10:13 AM
How many things do you need to see at the same time?
Do you have any LabVIEW Gurus in your organization? Someone who can work with you and give you pointers on LabVIEW Style and improving your LabVIEW Programming?
Bob Schor