LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I have to use the event "panel close" ?

How do I have to use the event "panel close" ?
Hi I have a problem with event panel close.
I build an application with "Build Applications or shared library (dll)".
I set an event case on the main of the application to panel close.
I have setup the application on the targhet machine and run it.
The application works well but when I try to stop It closing the windows, It don't stop and the application goes on the not responding state.
I have tried every panel close events (panel close,panel close ? with Discart = True,panel close ? with Discart = False) but the problem still.
The problem is very strange because if I run the application on the building directory it is working, but if I run it on the i
nstallation directory (c:\Program File\Application) the problem happen.
On the application I have an other event case (timeout) that call "NI SEC Interactive User Info.vi".
If I remove this call the problem goes out.
I have configured the Application builder to copy on the installation directory all file needed for security support (As described on the Build Applications or shared library manual).
For a better understanding of the problem I attach 3 examples.
Please rebuild the examples and install they.
Try to run the 3 test on the installation directory and on the building directory.
I'm using LABVIEW 7.0.

Ciao.
0 Kudos
Message 1 of 4
(3,045 Views)
Ciao,

You are using in your program the "NI SEC Interactive User Info.vi", this is a VI that comes with the LabVIEW DSC module and for that reason will only work properly in a executable when in the same folder as the DSCengine.exe is residing. So, the problem you running into stem from the fact that you are trying to run this VI in a different folder.

Please refer to the following document that clarifies the appropriated location to deploy your LabVIEW DSC application :

http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/2f7cf918f3b412db86256a1c006af25f

I hope it helps

Andre Oliveira
0 Kudos
Message 2 of 4
(3,045 Views)
Hi Andre.
As described on "Datalogging and Supervisory Control
Module Developer Manual" there is the possibility to develop application that only use Security VIs of DSC. (Ref pag 8.2)
A detailed step explain which files you have to copy on the application directory.
I have developed applications with security but without DSC with LV6.1.
The problem arise when I rebuild an existing application with LV7.0.
0 Kudos
Message 3 of 4
(3,045 Views)
Hi Andre.
I have done some tests and seem to me that the
problem is on the security system.
I attach a test application.
Build and install the application.
Follow the steps written on the panel.
The builder make an installer that copy security
files from NI directory.
Since the NI directory on my computer is
"C:\Programmi\National Instruments\LabVIEW 7.0"
and on your maybe different.
You have to create on your computer a directory
"C:\Programmi\National Instruments\LabVIEW 7.0"
and copy on this directory the directory "vi.lib" and "project"
of your NI LABVIEW installation.
After so the builder will be able to find the security file needed.
0 Kudos
Message 4 of 4
(3,045 Views)