LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Option running in foreground

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

0 Kudos
Message 1 of 7
(3,377 Views)

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.

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 7
(3,353 Views)

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

0 Kudos
Message 3 of 7
(3,331 Views)

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

 

 

0 Kudos
Message 4 of 7
(3,326 Views)

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.

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 5 of 7
(3,307 Views)

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.

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 6 of 7
(3,305 Views)

Hi Hillman,

 

I'll give it a try and will inform you of my results. Thanks for the support.

 

Best Regards

 

Ridwan

0 Kudos
Message 7 of 7
(3,287 Views)