LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transferred LabVIEW Program hangs on Exit

Hi,
I have recently transferred a large Labview VI application from 5x to 7.1 version. I run it and gives no warnings, I can navigate trough all my  front panels and sub windows, However if i press any of the exit buttons the whole program hangs and i can not get out of it ( can't close any front panels) I have to use windoes task manager to close Lab VIEW.
 
Any help would be much appreciated.
 
Kind Regards
 
Ramin Vali
0 Kudos
Message 1 of 6
(2,716 Views)

Hi Ramin,

The problem you describe is odd, since there should not be a problem upgrading your LabVIEW project.  However, your post does not include a lot of information about the application.  What is it that the applications performs?  Have you tried running the code in Highlight execution mode, or tried to setting breakpoints before the VI stops LabVIEW?  Did you try to mass compile the application? More details would greatly help in trying to troubleshoot this issue.

Regards,

AG, NI

0 Kudos
Message 2 of 6
(2,685 Views)

Hello AG,

 

The application is supposed to control some electrical current drivers and make them give more or less current according to the inputs and store the outputs in an excel worksheet and summaries them. I have tried to run the application step by step and used the highlight feature as well. The program compiles and runs perfectly in my old machine which runs LV 5.1 .

 

When I start the program and run the application, everything is fine. I click on the buttons in the GUI and I can open up more windows. But if I click on the exit button on a GUI the program does not close that particular window. Instead the GUI windows start flickering very fast and I can not stop the program manually. I have to use Windows task manager to get out of LV otherwise the application windows just keep flickering. Note that it only happens with “EXIT” buttons, the rest work fine.

 

 

I personally suspect that it might be the libraries that the application is using. When I try to get the library manager going it says that it can not find to vi files called “set busy.vi” and “unset busy.vi”.

 

I have changed the vi.lib folder from 7.1 version with 5.1 version but it was no use.

My computer has an Eagle  PCI 766-8 16 bit DAQ Board installed on it and the application is supposed to interface with that one too.

 

It seems so confusing!

 

cheers

0 Kudos
Message 3 of 6
(2,666 Views)

Hi Ramin,

Perhaps your top-level VI is waiting on a subVI which has an open window. I would suggest running the application again in Highlight execution mode, but this time look for where your code stops, and whether it continues, after you click the exit button. 

If you used VI server to run the subVIs, check out the invoke node which runs this VI.  There's an option to have the calling top level VI "wait until done" it's a boolean which may be set to true, which could be why your application won't proceed. 

Sorry for the late response, but hope this will help, otherwise, you'll have to provide more information and possibly a simplified version of your code to reproduce the issue.

AG

 

0 Kudos
Message 4 of 6
(2,624 Views)

Hello AG

 

Thanks a lot for your reply. I have fixed that problem. Something very riddiculus, I made a local variable of each input button in the block diagram and then connected all of them to a false constant boolean. It fixed that problem.

However I am struggling a bit on getting some input fronm some opto sensors i am using ( I am using sensors to measure the speed of a turining wheel. The sensor output has to go to a pin of DAQ board (eagle PCI 766 16 ) which has 6 digital I/O ports. Although i have connected everything correctly and my sensors are giving their correct output ( when checked with a multi meter) I still can not get the DAQ to see it.

Basically i have a square wave of 2.5V pk-pk on a digital input pin and i need it to trigger my counting algorithm. pci 766 is not compatible with the new DAQmx  method so i am using its own EDRE read from eagle website itself.

There is no one who is using pci 766 ( i have checked) so i actually might attach the bit of code i use to read the values to you. tell me if you need it.

I  am wondering what should i do for the diagnostics of the problem.

 

Cheers.

0 Kudos
Message 5 of 6
(2,620 Views)

Hi Ramin,

It seems like your problem resides with the Eagle Card with which unfortunately, I cannot help you. I would suggest you contact Eagle technical support, and see if they can help with the issue.  Otherwise, I can offer you other DAQ card which NI does support, with which you will definitely be able to achieve you goal.  I would recommend you check out http://ni.com/dataacquisition/ for more info.

Best of luck with all your work,

AG

 

0 Kudos
Message 6 of 6
(2,606 Views)