12-01-2008 03:49 AM
Dear LabvVIEW experts,
I have came up with a user interface for my program that enables a user to input the location of the files to load the data from. The user is also allowed to abort the loading anytime during the program. Currently, the button to abort the loading is on the front panel but there are also other buttons. To avoid confusion for my user, I am trying to make my panel user interface better. The function that I wish to add is:
1. When the user has finished inputting the relevant inputs, the data will load through a while loop. How can I implement the VI such that when it is loading the data, an option box will pop-up asking whether the user wishes to abort the loading of data without waiting for an input from user. I tried using dialog boxes but the problem is that the while loop will not move until the user clicks on "OK" on the pop-up box.
2. I am making the VI into an executable. I wish to remove the border that includes the tool bar option, scroll bar etc when it runs. I want to display only the VI. I think this will make the VI less messy. How can I achieve this?
Looking forward to your response.
Thanks in advance
Best Regards
Ridwan
12-01-2008 09:28 AM
Hi Ridwan,
Thanks for the post and I hope your well.
1. To avoid the loop hanging (true is for event structures) you need to call a VI Dynamically - to generate the pop up box. I have attached an example which generates apop up box(which is a subVI) that allows the loop to continue exucting until the result of the 'pop-up' is gained.
2. You can then alter the front panel appearance in two ways,
#) Go to, New>>VI Properties>>Windows Appearnace>>...
#) Use property nodes to select.unselect the appearance of the front panel.
Im happy to answer any questions regarding the example.
Kind Regards,
James.
Hope this helps,
Kind Regards,
James.
12-01-2008 08:02 PM
Hi James,
I wasn't able to run the sub-VI because they were saved under labVIEW 8.6. The latest version I have is only 8.2. Sorry, forgot to inform you my labVIEW version.
Best Regards
Ridwan
12-01-2008 08:53 PM
Hi James,
I was looking around my lab for labVIEW 8.6 and i'm able to get hold of a PC having the version but i can only use for a while. Will appreciate if you can send me version 8.2? Thanks a lot.
While working on the program you send me, i encountered some error. I realised it got something to do with the location of the shared variable. I'm not sure what adjustment i should do. Attached is the screenshot of the error.
Best Regards
Ridwan
12-02-2008 04:24 AM
Hi Ridwan,
Thanks for the reply and I hope your well.
It is always important to tell the community what version of LabVIEW your using - this would obviously save time. However, I have no problems converting code. Here is the project (see attachments) in LabVIEW 8.2.
The error your seeing is likely caused because the shared variable library isn't being deployed correctly. I altered the code to include the advice from the following KnowledgeBase article.
Please let me know how you find this,
Kind Regards,
James.
12-02-2008 04:30 AM
Hi,
Sorry the KnowledgeBase was,
Error -1950679035 when Using Shared Variables.
http://digital.ni.com/public.nsf/allkb/A12707C3AA00F5598625737C0066D4F6?OpenDocument
Let me know how you get on.
12-04-2008 06:32 AM
Hi Hillman,
I'll give it a try and will inform you of my results. Thanks for the support.
Best Regards
Ridwan