Halt Program until a button is pressed on the initial page

Recommended Posts

I am trying to setup a first page such that it stays up and program execution stops until a button is pressed on that page.

It's a page to check if the logging directories exist, so 2 buttons, one will be to create the directory structure and the other will popup a system message saying "Press ok to quit as no directories are setup". I guess I'm trying to make the page modal but also stopping further execution of the program until the choice of button is made.

Link to comment
Share on other sites

First question would be why you don't just automatically create the directories on startup if they don't exist.  The File. functions give you that ability.

But as to your question, that really depends on how you setup your system and what you want to stop.  Stopping channels with Timing is a little hard.  For that, you'd have to set your Timing to 0 and either trigger reads from a sequence or programatically set the Timing values when you are ready.  Everything else is much easier.  For Logging sets, PIDs, etc, just make sure they aren't marked auto-start and then start them from script when ready.  For Sequences, again, make sure only one is marked auto-start.  Have this one display the desired page.  The desired page would then have a button to continue which would then start a second sequence that change to the main page and start up all the other scripts, logging etc you have.

I do not recommend using a modal popup.  Just use a regular page that displays first.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.