02-25-2013 06:23 AM
Hello,
I want to create one button for example one help button on front panel of VI so by pressing that any new user can open folder in which I have store some help guide.
Means I have make one folder on my desktop in that I have save all the data which should be useful for new user so if some new user want to run the programm and if he has no idea that how to run program then he can simply press help button and after pressing that helping folder will be open then reading then instruction user can start the program.
Hope you will get my point.
Thank you very much.
Solved! Go to Solution.
02-25-2013 06:41 AM - edited 02-25-2013 06:42 AM
Go to edit --> run time menu and customize accordingly on front panel.
02-25-2013 06:42 AM
Something like this?
Specify the folder you need in the command line argument, in the above example I have C:\Intel
Hope this helps.
02-25-2013 07:30 AM
Thank you very much for your reply.
I tried with given figure but I didn't get success.
I am already dealing with producer consume event here I am attach my example vi if possible then please let me know that what should I do in order to open folder at any location.
02-25-2013 07:57 AM
Here
02-25-2013 09:21 AM
The Help that aCe posted will not work if you intend for the help to be displayed immediately. Since it is queued it will not be processed until the run is complete if it is currently running. This also means that if the Pause button is pressed the help will be delayed for quite some time. Also, you should avoid the use of local variables to control state information. The state machine should maintain all of your state information. The producer should only detect the events and pass the messages to the consumer. What you are encountering is a classic issue with the producer/consumer with the consumer acting as a state machine. Interrupting the flow of states with new events of a higher priority can be problematic. Simply placing items in the front of the queue may not always work correctly. There are some examples of implementations that use multiple queues which can create prioritized messages.
02-26-2013 01:16 AM
Thank you for helping.
Yes Mark is right that when help is pressed then its not execute immediately.
So what kind of changes I need to do so when ever I pressed help then its execute immediately.
Thank you for help.
02-26-2013 01:49 AM
I think problem is solved now...
Here I have attach screen shot of the solved Problem that might be help.
Thank you very much for your help and time.
02-26-2013 10:26 AM
If yopu display the help inside the event structure there is no need to post the message to the consumer queue as well. Also, you need to understand the if you place code in the event structure that requires a long time to execute you will delay any other events from being processed. This can result in a sluggish UI.