04-08-2009 08:47 PM
I have this vi and subvi that I am trying to send information to from an array index that I choose from the boolean array this information then goes to the other subvi to be added to the string indecator.
here is my code:
04-08-2009 09:01 PM
Your SubVI has a while loop in it that can only be stopped by pressing the stop button. And that loop will run as fast as it can. That means the front panel of the subVI will have to be shown in order to stop it. Exactly what do you want this subVI to do, because you have really no productive code in it right now.
In your main VI, you call the subVI, but you have no wires going to or from your subVI. Also, that for loop will run as many times as elements you have selected as true in that boolean array. Is that what you want?
Also, your event structure in the main VI has a property set to lock front panel until the event completes. This will probably cause you problems as well.
You haven't clearly stated what you are trying to do with these two VI's, nor have you actually asked a question or said that you have a particular problem.
???????????????
04-08-2009 09:13 PM
well first I want the user to be able to select the information he/she wants to be sent to the subvi and than the subvi will allow the user to print the information into an html format after that the subvi will close so for instance if I where to select the booleans index[0] the information tim and jones would be sent to the subvi's indecator and string combo box.
my question is how do I send this information to my subvi?
thanks,
04-08-2009 09:21 PM
I put in the function to send to the URL but I still don't know how to send the information to the subvi
from the main VI
04-08-2009 09:28 PM
04-08-2009 10:15 PM
my question is how do I send this information to my subvi?
Wires.
04-08-2009 10:22 PM
Ok I tried to connect them I understand that I am sending an indecator to an indecator but I try to connect them so..... I get broken lines.
here is the code:
04-08-2009 10:43 PM
?????
Change the arrays in your sub-VI to controls, not indicators. If you need to pass them out of the sub-VI later on, create a duplicate that is an indicator, wire the control to it, and pass the indicator out.
Also, why all the seemingly unnecessary local variables?
04-08-2009 10:43 PM
Sending an indicator to an indicator is absolutely wrong. You wouldn't connect the output of one function to the output of another function in the main VI would you? You have to wire to an input of the subVI. That means a control.
This is extremely basic LabVIEW (and programming in general) knowledge. You should really take the basic LabVIEW tutorials and consider taking a class.
04-08-2009 10:45 PM
I was telling you I know you can't connect an indecator to an indecator