LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview run example



@Melikyan wrote:

... After measurement or after 2 progress need to clean register or update the controls...


Please define what you mean by "register". I don't iunderstand.

Message 21 of 31
(1,167 Views)

Dear Altenbach I mean when the top run I push, then I measure by using the Bulean Run. For example I put some controls and do measurement (2 cycle).

After that I want to change the controls and push the bulean run (but no the top run: ctrl+r), and program work with change controls...

For example. The time wait I put 3sec. and do 1st measurement. After that I change the time wait, put 10sec. but program no work using 10sec.  

If I stop the top run, change controls and run the program, it's ok. But I want that no stop the top run. Only change the time wait, and push bulean run and program work right.

Thanks.

0 Kudos
Message 22 of 31
(1,164 Views)

When I used the For loop, that problem no have. I puted the time wait 3sec. measured 2cycle, and then I change 10sec. worked right.

But now how can I do it?

0 Kudos
Message 23 of 31
(1,162 Views)

Well, look at the case containing the wait!

It is case "1", while the other case, (containing no wait!) will execute except for the second iteration ([i]=1) of the big loop. This means the wait will only happen once. Makes sense.

If you want the wait to happen at every second iteration, you can for example wait only if the iteration number is odd.

 

These are all very basic things. Have you tried running the VI using execution highlighting? You would immediately see what's happening. 🙂

Message Edited by altenbach on 07-15-2007 11:41 PM

Message 24 of 31
(1,153 Views)

Dear Altenbach thank you again.

In front panel I have many controls and indicators, that I use not often. Can I put that all in one Bulean. If I push the Bulean open the interface(small window) and show the controls and indicators. After I change the controls, and close again and use the program with changes controls...Is it possible?

Please help me...

 

0 Kudos
Message 25 of 31
(1,129 Views)

I mean that I want to make subinterface on main interface. If the main interface contains many controls and indicators. But make the main interface more simple. Some indicators and controls put in 1 Bulean button. If push the button open the subinterface, change something close and work with main interface...

Is it possible?

Thanks in advise...

0 Kudos
Message 26 of 31
(1,122 Views)

Dear Altenbach and Mikeporter thank you very much for your help.  I attach the last Vi. Now I have 2 problem.

1. Need that waveform chart (the right graph) show only 2-nd progress points...1st progress points no need. Only 2-nd progress...How can I do it?

2. Need both Graphs and some controls insert in 1 Bulean. If I push the Bulean open the graphs and controls. I change some controls, close the window, and continue work with program...

Can you help me?

0 Kudos
Message 27 of 31
(1,108 Views)
If you want to open a different window and then be able to input your values, you can create a subVI that will open when it is called and then close after it's execution ends. 
 
First, create a new VI and add your controls to the front panel.  Open the VI Properties by going to File >> VI Properties and select the Window Appearance category.  Click Customize.  In that box, select "Show front panel when called" and "Close afterwards if originally closed".
 
Next, in your subVI create a while loop that runs until a stop button is pressed.  Create indicators for your controls and add them to your connector pane by going to the front panel and right clicking on the VI's icon at the top right and selecting "Show connector".  You will then be able to select connectors for your indicators that will allow the data to be passed to the main VI.
 
Once you save your subVI, you should be able to place it in your main VI and using a case structure or an event structure, you will be able to launch that subVI, input data, then exit the subVI and have the data passed back to the main VI.  I hope this helps.
Brian Coalson

Software Engineer
National Instruments
Download All
Message 28 of 31
(1,096 Views)
Thanks for your great help. I use Labview 8.0. Can you atach the files by Labview 8.0?
0 Kudos
Message 29 of 31
(1,081 Views)
I atach the file. On the front panel, under the graps I mark the that part, which I want to make. But here controls and indicators more than 28...
How make subvi? Can you help me?
0 Kudos
Message 30 of 31
(1,076 Views)