11-24-2019 05:04 PM
HELLO TO EVERY ONE, I WOULD LIKE TO KNOW IF ITS POSSIBLE TO AVOID THAT A USER OF AN EXE PROGRAM STOP THE PROGRAM.
I HAVE PERFORMED A PROGRAM THAT COUNT THE TIME THAT A PHASE OF PROCESS TAKES AND I DONT WANT THAT THE USER STOPS THE PROGRAM TO ALTER THE TIME RESULT.
HOW COULD I DO IT?
BY ADVANCE THANKS.
Solved! Go to Solution.
11-24-2019 06:56 PM
Your caps lock key seems to be stuck. That makes your message that much harder to read.
What method are they using to stop the program now? I assume at some point of time you will want the program to stop either on its own or through a request of the user, so how do you want to enable that?
It is impossible to offer suggestions to a program that you failed to attach as a VI to your message.
11-24-2019 07:00 PM
You can disallow to close the window (customize windows appearance in vi properties) or you can use a filtering event for "panel close?". What kind of problem are you trying to solve?
11-25-2019 09:45 AM
Hi altenbach, i did not upload the VI (PREGUNTA.SWITHC) because i considered it was no necesary, but i have uploaded if it could help you to help me.
As you can see on the image the run and stop buttons on the executable program are available, i thought those buttons were not going to be available once created the exe program, and testing my program i realzed that the user could stop the program and thus alter the time result on time indicators.
My program is still building, it needs more things, but i need that the program being stoped by a button with pasword(on VI), not by the stop button indicated with red arrows on the image.
Im working on button with pasword, i dont consider it tough, but i would like to know if its possible to block the stop button indicated with red arrows on the image or make it inactive, to stop the program using the pasword button.
Thank you in advance.
11-25-2019 09:48 AM
Hi RavensFan, i did not upload the VI because i considered it was no necesary, but i have uploaded if it could help you to help me.
As you can see on the image the run and stop buttons on the executable program are available, i thought those buttons were not going to be available once created the exe program, and testing my program i realzed that the user could stop the program and thus alter the time result on time indicators.
My program is still building, it needs more things, but i need that the program being stoped by a button with pasword(on VI), not by the stop button indicated with red arrows on the image.
Im working on button with pasword, i dont consider it tough, but i would like to know if its possible to block the stop button indicated with red arrows on the image or make it inactive, to stop the program using the pasword button.
Thank you in advance.
11-25-2019 10:29 AM
Okay. You only need to attach your message once. No need to make two messages with the same reply.
Did you go into VI Properties >> Window Appearance? You can change the settings to be be a Top-Level application window. Or use Customize to more specifically enable to disable windows elements such as showing the abort and run buttons.
11-25-2019 10:49 AM
@RavensFan wrote:
Okay. You only need to attach your message once. No need to make two messages with the same reply.
Did you go into VI Properties >> Window Appearance? You can change the settings to be be a Top-Level application window. Or use Customize to more specifically enable to disable windows elements such as showing the abort and run buttons.
Or a hybrid of the two suggestions, which is to first set it as top level, then customize it to your liking.
11-25-2019 10:50 AM
Thanks a lot.
Very good contribution
👍
11-25-2019 11:10 AM - edited 11-25-2019 11:19 AM
OK, you attached a VI (not an executable or explain how you are building the executable).
Are you running this in the developments system or are you actually bulding a standalone exe?
Thanks for attaching the code. It is highly flawed. Who wrote it?
Here are some issues from a 10 second glance at it:
Can you write down in simple terms what the code is supposed to do and how it should be used? I am sure it could be done in 5 minutes and <10% of the current code with a diagram the size of a postcard. Try it!
11-25-2019 12:19 PM
Hi altenbach.
I have writted this program, and yes, i have uploaded a VI to you can see the code, and the picture is a capture of the exe program.
I have a lot of errors as you say because i dont have training on this sofware, ive been learning by myself trying to do my best, but this way to learn is not so efficent.
Im going to tell you what i want this program do.
I want to perform a process phase tracking and count the time that every phase takes, i have done some anti failure mechanisms, as you can see, buttons blocked if you dont start with the first button and anti return of the button once pushed and what i have asked first that i already know how to do it.
Every boolean swith represents a phase of a process, when the operator goes to the next pashe he must push the next switch.
I want to have the register of the state of the proces (which phase is working) and time that takes every pahse.
This is not a automated process, thats the reason im not using sensors, is a manual procedure.
These are my first objetives.
After, i want to do this program by tcp/ip to collect this information in a client (server is this process track phase and client is a supervisory program) and add some side windows (i dont know the right term on english) like the picture to add more functions.
i apreciate your interest and help.