03-26-2008 01:55 PM
03-27-2008 03:40 AM
04-15-2009 09:12 AM
03-27-2012 05:19 PM
Hi
I am having a similar issue. Is there a way of stopping the NI OPC Server or the shared variable engine automatically when I close my exe. Any ideas would be great!!!!
03-27-2012 07:58 PM - edited 03-27-2012 07:59 PM
What's your LabVIEW and NI OPC Server version?
You need to manually close the NI OPC Server. If it starts again after you close it, it means something like Lookout or shared variable engine is connecting to it.
03-29-2012 04:34 AM
Hi Ryan,
Im using ni Labview 2010 and evaluation of NI OPC Server v 4.500.462.0.u (license on the way). I am connecting to Festo EZOPC.
New users will be logging on to this PC and running the application quite a lot so it would be great if they didn't need to learn how to manually "Stop Process" in the Distribution System Manager.
Is there an activeX control, CMD commands or labview "thing" I don't know about that could stop this process automatically when they close the application????
Cheers
Ross
03-29-2012 08:10 PM
Do you want to automatically stop the NI OPC Server or the process in shared variable engine?
Do you have DSC module? If you want to stop the process in shared variable engine, I think you can use the Deploy Library.vi/Undeploy Library.vi. It means you programmatically deploy the library at the beginning of your process, and undeploy it at the end.
But I don't know a good way in LabVIEW to programmatically stop the NI OPC Server. But if you undeploy the LabVIEW library, to keep the NI OPC Server running actually doesn't matter.
You can also post this question in LabVIEW forum. They may have more experience with LabVIEW.
03-31-2012 05:09 AM