LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about the excecution of vi

Hello,
I have a simple question: I have one application which contains "Dymanic Introduction MOD.vi", when I click on the botton "Valider", curves are traced in different the graphs, and as soon as I click on the button "Stop", posting stops immediately.
Here my question: During the excécution, I will like to be able select the curves that I will want to post, then to again click on the button "Valider" for the update of the graphs. In my case, that is still impossible because it is the same curve which continues to be posted even if another selection is made.
I do not know how to make for that?
I thank you in advance.
I send my files to you
0 Kudos
Message 1 of 7
(3,693 Views)
All your "attribute node writes" on the right side of your code only execute once at the start of your program. Since they are not inside a loop, they will never execute again and changes to these controls on the front panel are ignored.

You might want to put all that scattered code on the right in the false case inside your main while loop. And please add a small wait statement in the loop, currently it is spinning as fast as the CPU goes, doing absolutely nothing.

You might consider using an event structure instead of the case structure. I think we talked about that in the past.
Message 2 of 7
(3,679 Views)

I ve wrote a sub-vi which does not operate like I wish. Could somebody tell me where it is wrong.

I explain my problem.

I ve wrote a sub-vi to disable and gray out some buttons. In the sub-vi the operation give me satisfaction but when I use this sub-vi in another VI, some functions don t operate like I wish.

In the Sub-vi I ve 3 buttons and its goal consist to disable 2 other buttons when I press on any button of these three buttons. In the sub-vi itself I ve the results I wish but not together with a VI. Could somebody help me?

Thanks in advance

 

my sub-vi is Auswahl1.vi and my VI is essai.vi

Download All
0 Kudos
Message 3 of 7
(3,511 Views)
You should have created a new thread for your question. Anyways, if you want to perform operations on the front panel controls of a main VI from a sub VI, then you need to use control references and property nodes. Attached is an example of the implementation you need.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Download All
0 Kudos
Message 4 of 7
(3,507 Views)

Hey!

thanks for the answer but I cannot open these files (MainVI and SubVi) with my student version 8.5 of labview. Could you save these files  for me with the version 8.5 of Labview. Thanks again for your help-

Greetings

0 Kudos
Message 5 of 7
(3,487 Views)

Hey Adnan Z!

thanks for the answer but I cannot open these files (MainVI and SubVi) with my student version 8.5 of labview. Could you save these files  for me with the version 8.5 of Labview. Thanks again for your help-

Greetings

Download All
0 Kudos
Message 6 of 7
(3,457 Views)
In 8.5
Message Edited by Ravens Fan on 12-22-2008 01:30 PM
Download All
0 Kudos
Message 7 of 7
(3,443 Views)