04-13-2012 01:44 PM
I have just created a VI and I am working on building its correspond application (exe). The problem I face is I have a front panel user inputs and without filling these inputs correctly, an annoying error sticks with the screen after double-clicking the (exe) file which makes me closing it via the task manager. What I need is how to alter the compilation process so that the (exe) file wont initially run after being double-clicked.
Thanks in advance
04-13-2012 02:01 PM
If you're planning on using this as an executable, you're probably better off fixing your VI so that you don't start using incorrect inputs.
You can do this either by setting valid defaults in your controls or by using a state machine which allows the user to enter correct inputs before running.
04-13-2012 02:06 PM
Thanks for help, however, it would be appreciated if you can elaborate more on state machine usage, since I am beginner in Labview and can't figure out what you said.
A link to tutorial or website of its usage can suffice.
Thanks
04-13-2012 02:15 PM
04-13-2012 02:42 PM
I will check your link.
If you want to give a help in my minimal example, here is an example of typing the address of an Excel file (e.g.. C:\test.xls) in addition to keeping it open before running the VI in order to prevent a DDE error generation. I want to make window popup to fill it with the right location of the opened file.
Thanks for help
04-13-2012 03:35 PM
Go through the lessons in the included link. In particular, spend some time in the Dataflow Programming Basics.
For your program, you really don't need the flat sequence structures that you are using.
While you're reading, you should probably also look into:
I would suggest using a button to trigger your DDE actions.
04-13-2012 05:33 PM
I am sorry, but I can't imagine the solution in your mind. What I simply need is to make a popup window at the initial start of the file prompting for the excel file directory in the case of my minimal example. After that, this string command is used in further file runs. Because of being beginner, I can't figure out the right usage of Labview elements.
Thanks
04-15-2012 04:58 PM
Did you read through the tutorials?
You'll be less of a beginner if you do so.
I'm not a huge fan of pop-ups. If you want to do a pop-up, try using a Dialog box or a File Selection Dialog.
Go ahead and post your vi after you've tried these and we can work from there.
04-15-2012 05:57 PM
@Taki1999 wrote:
Did you read through the tutorials?
You'll be less of a beginner if you do so.
I'm not a huge fan of pop-ups. If you want to do a pop-up, try using a Dialog box or a File Selection Dialog.
Go ahead and post your vi after you've tried these and we can work from there.
I used a dialog box instead of simple error handler, and it worked.
I think the sentence of "You'll be less of a beginner if you do so" doesn't show respect, and maybe I am "less of a beginner" but trying to learn through the community.
Thanks for help
04-16-2012 07:42 AM
@Diaa Abidou wrote:
I think the sentence of "You'll be less of a beginner if you do so" doesn't show respect, and maybe I am "less of a beginner" but trying to learn through the community.
Sorry. No disrespect intended.
I do think the tutorials are very helpful and know that they helped me ask the right questions when I was learning.
In my personal view, I don't like seeing posts where people use being a beginner as an excuse. It's clear that you're a beginner. I think it's also clear that you didn't spend a lot of time with the tutorials.
These forums are a very helpful place and the expectation is that beginners will learn and not be beginners anymore. I was trying to suggest helpful resources to not be a beginner anymore. Sorry if that came across the wrong way.