Stop a progress with a button
Hi all,
I would like to know can I program a start / stop action with a buttion. That means I start a process with a button and I can terminate with an other button.
Many thx
It depends what do you mean by "process" you may be able to stop a query while running by setting the Forms' "Interaction Mode" property to "Non-Blocking" and you can stop a query.
For other processes you may have different logic depending on your requirements.
Tony
Similar Messages
-
Stop whole program with one button
Hi, I've written a program for reading some values out of a measurement instrument. Now i want to have one button which stops the entire program no matter in which loop or which subVI the program is in. I have a subvi to make a connection to the device and i can't get out of this when he is trying to make that connection. Also the stopbutton i've used now is only read when the program is in a specific while loop. Can is solve this problem. I've attatched my program.
Attachments:
oplossing2.vi 74 KBYou will need to use global variables to communicate between VIs. Don't make it a habit since using them can lead to race conditions and synchronization problems, so I would recommend that you look into functional global variables, semaphores, notifiers and queues. The Help document in LabVIEW has detailed explanations on each one of them.
You will need to call a subVI in parallel if you want to continue with the execution of other tasks in your mainVI. I have created a quick example which shows the use of a global variable and using a subVI in parallel.
Message Edited by Adnan Z on 02-17-2009 04:31 PM
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Attachments:
Example.zip 13 KB -
Cp6: How to stop a slide with multiple buttons in a non-linear presentation?
Hello,
I would be most thankful for a solution to this issue, as I haven't managed to find one yet in this forum.
The presentation is non-linear, which means that the first slide is a kind of menu from which you can choose another slide to explore, and always return to the first one.
Each slide has several buttons that activate various audio files, and there is an arrow button in the lower right corner to jump to the first slide.
The problem is that the slide does not stop after some audio buttons are clicked, and continues onto the following slide (instead of pausing until the arrow button is clicked). When I click a few buttons and listen to the audio, eventually the slide automatically continues to the next slide.
I have tried:
adding a click box on top of that button with ''pause project until user clicks'
changing all the buttons to Timing -> Pause after ...
changing only the arrow button to Timing -> Pause after ...
and don't want to make the time of the slide unnecessarily long
Any ideas?
Thanks in advance,
best
AgiHi Lilybiri,
Thank you so much for you reply, and the video instruction. Indeed, I had simple actions for the video, and now I have replaced these with advanced actions it is working fine - yey! It's a pity though that such a simple action requires such a convoluted way, especially because my presentation will be full of short audio files (= loads of scripts). I see that you are an expert in using Captivate, so this is still probably the easiest way to resolve the problem.
Anyway, I guess my situation is exceptional, because I am using Cp for an online artwork
Thanks again!
Agi -
Stop ending call with power button
Is there any way I can turn this feature off?
No, there is not. It is a firmware feature of the iPhone and there is no setting to change it.
-
Before the selector value reach a Case structure I need to stop it until a push button is pressed. How to do?
altenbach wrote:
UliB wrote:
simply wire your selector value through a while loop. Stop the loop with your button. After the loop stops, the value will go on to the case structure.
Hmmmm.....
Hello altenbach,
roflol .
Thank you for the link to 'A Field Guide To LabVIEW Objects - Selfish Loop'. I'll keep that in mind, when answering other questions with while loops.
Uli -
How to stop While Loop in Event Structure with same button?
Hello,
I have a problem. I want to use one control to activate an event in a event structure, and the same control to terminate a while loop in that event.
It is possible to use 2 controls to do this, but I need it to be only one.
Thank you
Message Edited by Heinen on 02-19-2009 06:16 AM
Message Edited by Heinen on 02-19-2009 06:20 AM
The Enrichment Center is required to remind you that you will be baked, and then there will be cake.
Solved!
Go to Solution.Hello,
I have a bit different problem.
I have a tab control, with several buttons on different pages.
In the current situation, we can talk about two pages, where one page ("Settings") in the Image, has a START and EXIT button, while second page ("Wait") has an EXIT button.
In a while loop, I have event structure, which handles events of the START and EXIT buttons of the Settings page. This is fine. But I also want to control the Exit button of the Wait page.
The control works like this:
When I click on Start in the Settings page, the front panel shows Wait page and attempts to connect to a datasocket server on the remote computer. If the user wants to stop this process, he can click on Exit on Wait page too. But, this doesn't give any immediate effect. On the even of Start button, the front panel is not locked, so the user can actually click the Exit button on the next page when it's visible. But it's of no immediate effect. Means, what the LabVIEW does is, finishes the execution of event in Start button's click, and while this executes, it doesn't consider the Exit button's refreshed value (shown in Red circle in the block diagram).
Simple question: Is there any way to check the updated (latest/live) value of a control during some event's execution? Or if I write an Event "Value Changed" for the Exit button and pass it to some variable. Is it the only solution?
Thanks ahead.
Vaibhav
Attachments:
terminate event_diagram.jpg 200 KB
terminate event_front_1.jpg 63 KB
terminate event_front_2.jpg 63 KB -
How do you stop inadvertent contact with the touch screen? Why no Lock Button? Doesn't anyone work out at Apple?? MY Gen 7 also doesn't link to workout equipment automatically like my Gen 6 and I can't stop the bloody voiceover. Any thoughts?
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
Stop on last slide with active buttons
Hi everyone,
Am still a beginner with Captivate...please help:
I've got 4 buttons set up on the last slide of Movie1, functioning as a simple menu, sort of.
First button goes to Movie 2, second button jumps to Movie 5, third button jumps to Movie 8, with a last WATCH ALL button starting from Movie 2 as well. All these movies are linked to each other (ie. movie 3 starts when movie 2 finishes).
How do I get the Movie1 to stop on the last slide, with all 4 buttons remaining active?
In my published exe, the buttons work if and only if I click on them before the project comes to a stop.
Thanks loads in advance!Hello again
While you can't really accomplish it with the Buttons as they stand, you can do something I did. Be creative! I inserted some "disabled" images of the buttons. Staged the images to be present when the Buttons could not be clicked. Then configured the Buttons to appear at the times when I wanted them to.
Here's a hint. If the Buttons are always in the same place, you may insert the "disabled" image on the first slide and configure it to display for the rest of the project.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Unable to turn on or do a restore.
After installing IOS7 it would turn itself completely off sometime and have to be restarted with both buttons. If I turned it off normally it would restart okay within an hour or so but overnight it would always go to hard off.
Using both buttons would usually start it with the Apple logo on the screen until it came up. Worked normally then. Knowing something was afoot I did a restore.
Now it will not turn on at all and I tried to restore in itunes but it stops at the point of "waiting for info from the Ipad"
I tried the Apple forum "recovery-restore" process several times with holding down the home button and plugging in the USB but it did not respond.
When connected through itunes it is still recognized as needed to be restored but the process will not complete.
Standing by.
BobBob ...
Might be something you have not tried here > iOS: Not responding or does not turn on -
Stopping a thread from "cancel" button
Hello all,
I have a problem trying to stop a thread. I have a class that hits database and retrieves lots of data. This retrieval can take a long time if lots of data, so I have a progress bar displayed. This progress bar has a cancel button. I am not sure how to link the cancel button to the thread so the thread can exit. See code below for example of whats going on:
public class MainApp {
public void doWork() {
ProgressBar pbar = new ProgressBar();
pbar.show();
DatabaseThread dbThread = new DatabaseThread();
dbThread.run();
public class ProgressBar {
// displays a progress bar with cancel button
public class DatabaseThread extends Thread {
public void run() {
// hit database
}So how am I to cancel the DatabaseThread class from the ProgressBar class. Thanks for all suggestions!what i said is that you need to hava a reference to your thread ine the class that handle the progressBar.
and in your Thread class you create a method like setCanceled(boolean b)...
public MyThread extends Thread{
private boolean canceled = false;
public void setCanceled(boolean b){
canceled = b;
public void run(){
while(!canceled){
//do your stuff -
Processing Page with cancel button.
Hi,
I have implement Processing Page but client wants to have cancel button to cancel the process.
Can anyone give suggestions how to implement this?
SCMy requirement is that i have a custom base page with submit button. When user clicks on submit button it would start long running process
And I should show a dialog page with clock saying process in progress message and a cancel button. User should be able to stop the process by clicking cancel button and back to base page. OAF gives the processing page that i want but without cancel button.
I try to add cancel button on the processing page programmatically but while it is processing and when i click on cancel button i cannot capture the event.
how to add cancel button on it and capture event? Is this correct approach?
Can any body could suggest the best approach and solution?
Thanks
SC -
Is there a way to track "pages viewed" progress with PDF's?
Is there a way to track "pages viewed" progress with PDF's?
Example: Student downloads a PDF from school portal -- Teacher can track who downloaded PDF, when and how many pages were view (where student stopped)? Similar to Flexpaper?The only other way I can come up with at the moment is by submitting the data via a URL to your server... The user will still have to allow the URL to be opened, though.
-
Pause & restart timeline with one button
I have created a lengthy animation as a prop for a TV
production. They want to be able to start and stop the animation at
will using only the mouse without anything being seen on the
screen. To do this I want to make an invisible button that covers
the entire screen. I know how to make it either start or stop, what
I can't figure out is how to make the invisible button start and
stop the timeline with alternative clicks ie click 1 starts it,
click 2 stops it, click 3 restarts ad infinitum.
Any help would be much appreciated
RalphHi Cevema,
The instance name is the instance name of the clip. When you
select the
clip on the timeline, open up your Properties Inspector. In
the
lower-left-hand corner there should be a "MovieClip" pull
down and
probably a text box with "<Instance Name>" in it. This
is how Flash
recognizes which clip you want to target. Add the name here
(no spaces,
don't start with a number, no special characters), and this
is your
instance name. Then, replace the "someClip" with the instance
name. Say
you used, "myInstance" for the instance name, your code would
be:
this._parent.myInstance...
You would do this anywhere where "someClip" appeared in the
example I
showed you.
In order for that code to work correctly, you will need to
ensure that
it is ON the button (not the timeline or anything). Also,
your clip
instance needs to be BESIDE your button on the timeline.
Here's how:
1. Your movie clip (the one to control) should be on a frame.
The button
you want to use to control the clip should be on the same
frame. It
shouldn't be inside the clip you want to control, in another
scene, or
anywhere else.
2. When adding code to your button, select it (don't open it
so you can
see "DOWN"/"UP"/"OVER" frames), hit F9 (or open the actions
panel) and
add the code there.
The reason you need to be careful when adding this code is
because of
something called scope. You'll notice that in the code I use
a keywor
called "this". It literally means...this! So if you are
putting this
code inside of some movie clip, "this" will refer to the
movie clip. In
this case, "this" refers to the button. "_parent" refers to
the movie
clip in which the button lives. It's like a word map....
this._parent.someInstance >>> From "this", look in
my "parent", and in
there look for something with instance name "someInstance".
Hope that clears it up.
Patrick
Cevema wrote:
> Many thanks for your speedy help. Whilst I find creating
the drawings and
> animations easy as a graphic designer action script is
like a foreign language
> to me!
> By clips "instance name" would that be the final name of
the swf or 'scene
> one'? Sorry to sound so thick but I can't recall
"instance names" coming up in
> my DVD course.
> Many thanks
> Ralph
>
http://www.baynewmedia.com
Faster, easier, better...ActionScript development taken to
new heights.
Download the BNMAPI today. You'll wonder how you ever did
without it!
Available for ActionScript 2.0/3.0. -
Hello,
I'm new to labview and i stuck with my program!
I want to control a for loop with a button. so i want every time i press the button the loop count is increased by 1.
ThnxA couple of things:
1) I would suggest sending the data in a cluster instead of an array
(actually, it is best for an array of clusters). It is more
straight forward to read sets of data (single element of array then
unbundle).
2) Why limit the number of time steps? If I want the temperature to change every hour, why not allow such a thing?
3) Thermostats are usually continuous (i.e. the stop time from the first step is the start time of the second step, etc.)
The two vis attached are two suggestions as to how to start your program.
Message Edited by Robert.Bedford on 09-22-2005 07:59 AM
Attachments:
schedule.vi 44 KB
schedule2.vi 45 KB -
Issues with rollover buttons in Indesign CS6
Hi, I was wondering if anyone can shed some light on a issue i'm currently having.
I've produced a interactive map in Indesign, with rollover buttons which triggers an animation - all the buttons and animations seem to be set up correctly and once I export as a SWF they seem to work fine initially, but after a couple of rollovers some of the buttons just stop working. If I refresh the page or reopen the swf file it then starts working again for a period, but again after a few successful rollovers some stop working again. I'm wondering if this is a bug of some sort? Ive also tested the .swf on a different machine and I experience the same issue.
Any help with this would be be much appreciated.We might be able to help you but you'll have to drop the attitude. We're not Adobe here, but users like you.
You'll need to tell us exactly what you're doing and what's not working for you. By "rollovers," you could mean the change of appearance of a button. You could also be meaning what are sometimes called Show/Hide buttons where clicking a button causes another button to appear. Which is it?
And what kind of output are you attempting? Interactive PDF? SWF (Flash)? DPS?
Maybe you are looking for
-
When I add to my iTouch playlist is doesn't show up in iTunes
I like to manually manage my music so I dont use the sync option and never have, but for about a year now when I add a song to my playlist on my iTouch and connect it to iTunes it doesn't show up under "on this iPod". It use to bout a year ago, but a
-
Migration Lightroom from Windows to Mac
I have a Lightroom 4 licence with upgrade to Lightroom 5 on my Windows PC, The serial code for LR4 is available, the code for the upgrade not. How can I migrate to Mac without extra costs?
-
Populating Datagrid using MySQL
Hi everyone, I need help bad. I am trying to populate my datagrid and i am using mysql. My table "Enhancement" consists of (enhancement_id, descr, details, version_reported, version_completed, date_reported, date_completed, reported_by, completed_by,
-
How can I see if a function has been called in background task?
I tried to see sy-batch, but it doesn't work. thanks Gabriele
-
Help. My imac is beyond warranty and I am debating whether or not to take it in. My imac randomly shuts down-ping noise, then black screen, then turns off. I have looked at other responses, reset the PRAM, reset the SMU, etc. Also, no overheating in