LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview run example

Dear Mr./Mrs. I make the program by Labview and need to put the run button the same as the top run (ctrl+r).
Is it possible to put Bulean Run parallel with the program Run? Please help me...
If have an example please atach...I use Labview 8.0.
 
Sincerely
Harutyun Melikyan
0 Kudos
Message 1 of 31
(3,858 Views)
No, you can't create a button on your front panel that starts the VI running. The best you can do is set the VI properties such that it starts running as soon as the VI loads into memory.

What is it exactly that you are trying to accomplish? How do you want the user interface to work?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 31
(3,848 Views)
Mike is correct. In order for the code to read the boolean, the VI needs to be running already. Catch 22 😉
 
You can always set the VI to "run when opened" and have the code start in a wait state. Pressing the button would switch the code to a more productive state. 😉
 
(In 8.2, there is actually a way to start a VI from a front panel button but discussing this would exceeed the scope of this thread. Its not practical anyway. ;))
Message 3 of 31
(3,844 Views)
Dear Mike thank you for your response. I atach the vi...If impossible last way, next way is to run the program the top, then put Bulean to run the measurement....
After 1 measurement I want second measurement on same Graph Indicator and stop the program...
I mean Push Bulean go 1st progress, finish show the graph, then wait a litlle, then go next progress and show the 2nd graph and stop...
If I want push again....2 progress again...
 
Thanks a lot....
Harutyun Melikyan
Message 4 of 31
(3,840 Views)

Just place it inside an event structure that fires when the run button is pressed.

(Of course the entire thing should go inside a while loop so you can run multiple times. Modify as needed)

 

Message 5 of 31
(3,839 Views)
Thank you very much....I want only 2 times to run...and stop, and push again and work again...
But I don't want that the top run(ctrl+r) stop. I want that stop only Bulean Run after 2 cycle...And push again, process again..
I used For loop N=2, but when I put Time Delay....First process go, then wait, then go second cicle, then wait and stop...
I don't want the last Time delay...I want only after 1cycle measure, wait, then go next cycle measure.
 
Once more time thanks a lot...
 
0 Kudos
Message 6 of 31
(3,815 Views)
Dear Altenbach, I attach the vi that I want....But where put there "Time Wait" control to delay the time only after first measurement...
 
0 Kudos
Message 7 of 31
(3,802 Views)
Dear Altenbach I have a question. If program run, after 1st cycle I cannot input the time delay, and then continue 2nd cycle, please recomend what way have to input time delay...
I need only 1 time delay between the first cycle and second cycle.
May be change "For Loop"...But how?
0 Kudos
Message 8 of 31
(3,793 Views)
Put the wait node into a Case structure and run it only when the loop index is =0
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 9 of 31
(3,788 Views)

Hello dear Paolo. Did you open my last Vi...? How can I do?

If you have a free time, please change the Vi and attach...I don't understand what you mean... 

0 Kudos
Message 10 of 31
(3,780 Views)