07-07-2015 07:55 AM
I have created a SubVI which contains only indicators and a few buttons.
I have attached each of the indicators to the connector pane, however when I insert the VI into a block diagram the connections only show as outputs. How do I get the connections to become inputs so that I can send data to the indicators?
The VI is attached.
Solved! Go to Solution.
07-07-2015 07:57 AM
Hi Chris,
THINK DATAFLOW! (It's the way LabVIEW works!)
Indicators do output data, so the subVI connectors connected with them will output data too.
In contrast controls are data inputs. So when you need inputs in your subVI you have to create controls!
07-07-2015 08:01 AM
Indicators are outputs, controls are inputs. So if you are passing something into a function that you want immediately displayed, create a control that you can write to and then wire the control to the indicator on the block diagram.
07-07-2015 08:06 AM
Waaaahh.
Thanks, I know that's what the help files said it's just counter intuitive.
07-07-2015 08:10 AM - edited 07-07-2015 08:11 AM
OK, so I now have a subVI full of controls which display the output from an instrument. One of the controls displays the maximum force exterted during the test. How do I get rid of the adjustment arrows and make it so that the user can't change the value?
EDIT: Never mind, sorted it.
07-07-2015 08:16 AM
@CHRISINSPEC wrote:
OK, so I now have a subVI full of controls which display the output from an instrument. One of the controls displays the maximum force exterted during the test. How do I get rid of the adjustment arrows and make it so that the user can't change the value?
EDIT: Never mind, sorted it.
Controls like that I tend to just hide off of the visible panel. The user can't change what they can't see.
07-07-2015 08:28 AM