Re: How do I pass data into a sub vi?

2004-03-24 Thread tmh
Think from the perspective of the VI, not the program: a control is always an input to the VI on whose front panel it's placed, and an indicator is always an output. Whether the control or indicator is displayed to the user or not is really secondary. If you're using a control to both pass data

Re: How do I pass data into a sub vi?

2004-03-23 Thread Dave123
Hi Dennis, Thanks for your reply. I thought that the tank would have to be an indicator to receive data from within the program and display it on the front panel and that a control receives data from the front panel and returns it to the program. I now realise this is not the case but it is a bit

How do I pass data into a sub vi?

2004-03-22 Thread Dave123
Hi, I'm trying to pass an integer value into a sub vi that displays this value on a tank indicator. I've connected the tank indicator in the sub vi to one of the terminals but in the calling vi it seems to see the terminal as an output not an input. I can't find any way of selecting whether the

Re: How do I pass data into a sub vi?

2004-03-22 Thread Dennis Knutson
That's because the indicator on you subVI is an output and not an input. Change it in the subVI to be a control or create a control in the subVI and wire that to the indicator.