08-17-2021 04:42 AM
Hello, I have created a labview program and I would now like to make it applicable. I succeeded in this step but when I launch my applicable it runs immediately and I would like it not to.
My program is in source file in always included and not in startup VI. And in parameter of the source files, in customize properties of the VI I have checked the following way : as an attachment
Am I doing something wrong? I don't understand how else to make my program not run instantly.
Best Regards,
M. Simon
08-17-2021 04:49 AM
@aerosimon wrote:
Am I doing something wrong? I don't understand how else to make my program not run instantly.
Actually your first error is basically to attach a screenshot of one of many possible settings that might be of influence. Adding the actual code and project would be a lot more helpful.
And your description makes no sense. If you don't have a startup VI assigned in the Application Builder setting, the program can't even be build. So you must have set some VI to be the startup VI and that VI will, just as the name says, automatically startup when you start your application. What that startup VI then does is up to you and we can't tell you more since you forgot to attach the project.
08-17-2021 08:06 AM - edited 08-17-2021 08:08 AM
Most likely your program has a poor architecture because you are asking for pointless functionality. The only mode a built application ever needs is "running". Stopped is useless, because you cannot edit anyway. It needs to look and work like any other program. No end user should need to learn LabVIEW specific instructions, such as using the tools in the toolbar. Every single program on your computer "runs instantly", right?
What you need is a proper state machine. Make your program start up in the idle state and go from there. It should always be running.
Feel free to attach your code so we can get a better idea what you are trying to do.