07-31-2009 04:06 AM
Hello,
I create a VI and I try to control it with connectors but I haven't a good result, I would know what is the best way to do this.
I used references, connectors, or variable but I have never control a VI I don't know the best way to do that, what I must do and what I musn't do.
The big problem I have is that my continue to run and this freeze my while loop.
I join my VIs.
Solved! Go to Solution.
07-31-2009 04:06 AM
I forget this.
The main VI is testVI.vi.
07-31-2009 04:57 AM - edited 07-31-2009 04:59 AM
07-31-2009 05:13 AM
07-31-2009 05:56 AM
Thank you, could you send me the files for Labview 8.5 please?
i can't open Labview 8.6.
Regards.
07-31-2009 05:57 AM
07-31-2009 06:03 AM
07-31-2009 06:04 AM
07-31-2009 06:38 AM
Hello,
Sorry but I have an other problem, in fact I want to use a VI with three parameters (in: index, and a chain table; out: enum)
The aim is to transform the chain at the index "index" in an enum type, but when I change the index on my VI I don't look a good result, there is nothing, like if the program was freezed in the sub VI.
I choose the solution with connectors.
Do you have a solution ?
Best regards.
PS: I put it my new example.
The other files are the same: lecturCSV.vi and testJC.csv.
07-31-2009 09:07 AM
You are correct. The subVI is freezing the program.
You've made a very elemental mistake. The subVI has a while loop that is only terminated by clicking on the front panel Stop button. Since you do not make the front panel of the subVI visible, there is no way to stop it. If you want to call the subVI, get rid of the whole event structure and while loop. It does not make any sense to have them.
Your passing a reference from the first subVI is also silly. All you have to do is wire the table up to the connector pane and in the main, wire that directly to Index Array function.
Less important but a bit of bad style is your stop event. Just wire the stop terminal out of the event to the conditional terminal. The True constant is just a waste.